-
-
Save gbissland/713f394e3f2c1e3086c4c86a7d84f159 to your computer and use it in GitHub Desktop.
Wordpress Enqueue jQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Put this PHP code into your functions.php le. | |
// This will load the jQuery library onto your page by inserting a link in the <head> section where you call wp_head. | |
if(!is_admin()) { | |
wp_deregister_script('jquery'); | |
wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/ | |
jquery/1.3.2/jquery.min.js"), false, '1.3.2'); | |
wp_enqueue_script('jquery'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment