Child theme:Loading js files

The reason why your code isn’t working is because bloginfo() echoes the data where get_bloginfo() doesn’t. So dirname() isn’t really used. Using stylesheet_directory is better though since that won’t need the dirname() call at all. You could also use the wrapper get_stylesheet_directory_uri() which adheres to the filter stylesheet_directory_uri. This is your code corrected: <script type=”text/javascript” … Read more

How to make a website like the ones in theme demos? [closed]

Theme demos, especially commercial ones, do not display out-of-the-box state of it. They are hand crafted and fine-tuned setups designed to sell (or at least convince for free ones). The official set of content that is typically used for quickly reviewing, evaluating and testing theme is called Theme Unit Test data. There are also unofficial … Read more

what is “theme_setup” method for?

Methods in 3rd party plugin and theme classes can be called whatever the author wants them to be called. theme_setup() doesn’t mean anything special, and doesn’t even necessarily mean the same thing in different plugins. And since it’s not a special method to WordPress, they’re never going to be called automatically by WordPress, so the … Read more

Load all files from folder in theme – Security concerns?

Only so much security can be added at the php layer. To gain even more security, modify the .htaccess file, disabling directory browsing, disabling XML-RPC, and deny access to WP-specific files. <files .htaccess> Order allow,deny Deny from all </files> <files readme.html> Order allow,deny Deny from all </files> <files readme.txt> Order allow,deny Deny from all </files> … Read more

A problem with functions.php file on my WordPress site

You need to enable your debug log to know actual problem on your site. Enable Debug log from your site though below steps: Open wp-config.php from your WordPress setup. Add below lines define( ‘WP_DEBUG’, true ); define( ‘WP_DEBUG_LOG’, true ); define( ‘WP_DEBUG_DISPLAY’, true ); And just refresh the page. Now you can see the error … Read more