Created
August 18, 2016 08:17
-
-
Save mzo84/f50fba98ad606e3d6cac004f3cfa6fc0 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