Skip to content

Instantly share code, notes, and snippets.

@infurno
Created December 3, 2012 02:30
Show Gist options
  • Select an option

  • Save infurno/4192219 to your computer and use it in GitHub Desktop.

Select an option

Save infurno/4192219 to your computer and use it in GitHub Desktop.
This snippet will disable the built in jQuery in Wordpress, but leaves it for the Wordpress admin side.
// Drop this in functions.php or your theme
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