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