wordpress snippets last updated   : August 18, 2014
we now have 638 snippets

Automatic jQuery inclusion

wordpress snippet

Adding this code to the functions.php will automatically insert Jquery into the header of your wordpress theme.

snippet :  PHPcopy
if (!is_admin()) {
	wp_deregister_script('jquery');
	wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false);
	wp_enqueue_script('jquery');
}
source →

Did you like this post? If so please share it with your friends. Thanks!

jqsnipp.com | we just launched jquery snippets website