How to correctly add JQuery in a WP theme?

When you register/enqueue your other scripts, simply pass jQuery as the third parameter and it will be loaded first and only once, from the local WordPress files: wp_register_script( ‘theme-js’, get_template_directory_uri() . ‘/js/theme.js’, array( ‘jquery’) ); If you only need the jQuery, simply use: wp_enqueue_script(‘jquery’); You can find a list here about the javascript libraries that … Read more

Theme broken after upgrading to WordPress 4.5, missing stylesheet?

It turns out that the ThemeWoot Emulate theme registers and enqueues a common.css file with the key of common in it’s themewoot.php (which is being included in functions.php). This key is apparently conflicting with a wp-admin script being registered with the same common key, and so, instead of including Emulate’s common.css, it’s enqueuing and injecting … Read more

Why is WordPress asking me to update my new (virtually blank) theme?

In addition to having the same name, I think it checks the folder name first for updates. You should also change your folder name if you are planning to distribute publicly, or if this is private, you can exclude it from update checks: http://markjaquith.wordpress.com/2009/12/14/excluding-your-plugin-or-theme-from-update-checks/. It would still probably be better to make the names in … Read more