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_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false);
source →

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