wordpress snippets last updated   : January 29, 2015
we now have 646 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!