wordpress snippets last updated   : October 6, 2014
we now have 641 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!