Blog

FreshBooks

How to change the default jQuery version used by WordPress

To override the default jQuery version called by WordPress from 1.3.2 to 1.4.2:

In your theme’s function.php file, Paste this code:

if( !is_admin()){
   wp_deregister_script('jquery');
   wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"), false, '1.4.2');
   wp_enqueue_script('jquery');
}

Wherever you see ’1.4.2′, you can replace that with whatever wordpress version you are using.

This has been tested in WordPress 2.9.2

Related posts:

  1. Working with WordPress child themes: Including files and getting the theme path
  2. Freelance WordPress Web Design, Drupal Development 04-12-11 – 04-13-11

Comment on this article: