Skip to content

Instantly share code, notes, and snippets.

@gbissland
Forked from mzo84/Enqueue-jQuery.php
Created May 24, 2017 22:25
Show Gist options
  • Save gbissland/713f394e3f2c1e3086c4c86a7d84f159 to your computer and use it in GitHub Desktop.
Save gbissland/713f394e3f2c1e3086c4c86a7d84f159 to your computer and use it in GitHub Desktop.
Wordpress Enqueue jQuery
// 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