Created
December 3, 2012 02:30
-
-
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.
This file contains hidden or 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
| // 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