Skip to content

Instantly share code, notes, and snippets.

@mzo84
Created August 18, 2016 08:17
Show Gist options
  • Save mzo84/f50fba98ad606e3d6cac004f3cfa6fc0 to your computer and use it in GitHub Desktop.
Save mzo84/f50fba98ad606e3d6cac004f3cfa6fc0 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