edited, ChilThemes find better resource… ^
If you plan to upload static content, a site template (html,css,js,images only), then any shared hosting with good uptime (>99%) is enough for you.
If you plan to upload dynamic content, a wordpress theme (php), then you need hosting with good uptime (>99%) and enough CPU resources for your site traffic. One important thing is, do not register your domain in the hosting company, so you are free to move to other hosting company when you need it. Personally, I register my domains on GoDaddy and NameCheap.
You can always start using any shared hosting package. If you only need hosting for serving your theme demo, then a shared hosting is enough. I use HostGator and DreamHost, it is only $ 5-10 month. Once your site is popular, high traffic, and the shared hosting is not enough for you anymore (high CPU resource usage, several downtime, bandwidth issue, etc), you can start thinking to move to a VPS hosting package for $ 30-100 /month. And when a VPS is not enough for you, you can move to a Dedicated Server for $ 200+ / month.
charity, gold, house, and car…
yup, file_put_contents will generate warning in ThemeCheck plugin.
If you don’t want to get this warning, you can try to use built-in WordPress
Also, I thought you were the one reviewing the theme
I am not TF theme reviewer.
Back to 2012, some theme authors simply remove wpautop filter to avoid this shortcode output issue. Then, this solution bring many issues to end user. Then, it is not allowed here.
I also developed similar function to solve this shortcode output issue for my previous themes on TF, and it was accepted. But yes, I do not remove line break or empty paragraph on my function. And I apply that function to specific shortcodes.
Good luck with your theme.
Different theme marketplace have different theme reviewer, and of course, different code standard.
For this case, TF theme reviewer said, “This is a poor practice and we’re encouraging authors to use another methods rather than stripping out or modifying native WordPress functionalities.” And personally I agree with the bold statement above.
You ask help on this forum, and I give my comment. If you think that you have valid argument on this issue, then you can try to submit your theme again and add some notes for the theme reviewer. Usually you will get additional & detail feedback from the theme reviewer (if they are in a good mod of course)...
The key message is you cannot apply that function to all shortcodes (and all post contents), because only few shortcodes need that…
For example, based on your code:
Line 605 and 606 can be applied to
[column] shortcode to clean the shortcode output from unproper
<p> tag from
BUT, line 607,608,609 replaces any line break or empty paragraph to be a space and it is not acceptable.
the first step, ask your hosting provider to scan your hosting account and change all of your password immediately…
So how can i check this? Where do i have to look? Please help!!
If you are familiar on working with php files, you can start searching the code like this on the parent theme files… Note: usually I use Notepad++ for my code editor to find a piece of code from a directory.
get_template_part( "templates/slider" );
If you can’t find this code on the theme, don’t waste your time, contact theme author and ask him to make the theme more child theme friendly…