Remove jQuery or Any Script from WordPress
Written by Saran on
April 12, 2012,
Updated
February 12, 2013Sometimes you may need newer version of jQuery to run your custom theme or some plugins. In that situations you may want to remove WordPress core jQuery to load your own version of jQuery.
To remove WordPress Core jQuery just do this: [cc lang="php"] wp_deregister_script('jquery'); [/cc]Removing and replacing with new jQuery for whole website is not a good idea, it may cause some script to stop functioning in admin area. To avoid removing jQuery in admin area use code below:[cc lang="php"] if ( !is_admin() ) { wp_deregister_script('jquery'); } [/cc]