How to use jQuery 1.4 by default on your WordPress blog

January 18, 2010 at 8:15 am

As you maybe know, the new jQuery version (1.4) is out. But until the next update, your WordPress blog will still use the old jQuery version. This recipe will show you how to easily replace your current jQuery version by the newest 1.4 version.

Simply paste the following code on your functions.php file:

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

Thanks a lot to Sean Hayes for sharing this tip with me!

Also, please note that today I’m lauching a new site called Coupons for Bloggers and as you probably guessed, it is all about discount for all your blogging needs. Great news for WordPress fans, I got a whole lot of WordPress coupons, cush as Headway Theme, Digging into WordPress ebook, Gravity forms, etc…
Happy discount to all of you!