Using jQuery 1.4 as Default on WordPress


Sponsored Links




How to use jQuery 1.4 by default on WordPress, this tricks is useful for some WordPress Developer and need using New Version of jQuery, like we all know, jQuery still using old version jQuery 1.3.x, but if you really need to using latest version pf jQuery, you can try this tricks

Open your functions.php and paste this code

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');
}

With this wordpress tricks, the default wordpress jQuery will be replaced by latest version 1.4 and up that taken from Google Apis, this trick is share by Sean Hayes and I got this nice trick from WP Recipes if you interested to running jQuery on WordPress with smothly, follow this jQuery Conflict Wrapper

Subscribe to Full RSS Feed

RSS FeedIf you thing this article useful, please consider subscribing to our RSS Feed or e-mail updates and stay updated with us. You can also follow @WPTricksNet on twitter for latest updates.

About WP Tricks

We are WordPress Family, we collected and writed useful tips and tricks for you WordPress. We share it for you...

Related Tips and Trick from Local Data and on The Net

jQuery: The Write Less, Do More, JavaScript Library

Major League Baseball; Digg; NBC; CBS News; Netflix; Technorati; Mozilla; Wordpress; Drupal Buy Now; jQuery 1.4 Animation Techniques: Beginners Guide Read More

Replace default WordPress jQuery script with Google Library

Easy tutorial that lets you replace the default WordPress jquery script with Google Library wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4 Read More

WordPress › Floating Menu « WordPress Plugins

sticky, floating menu widget from any WordPress custom menu using jQuery. action=close] - close the menu with the default Compatible up to: 3.1.4 Last Updated: 2011-6 Read More

5 Tips For Using jQuery with WordPress / Eric Martin / ericmmartin.com

know when using jQuery in your WordPress Using the code in the previous two tips, jQuery will, by default, be inserted WordPress Pumpkin; SimpleModal 1.4.1 Released Read More

Small Tips Using WordPress and jQuery - WP Engineer

Small Tips Using WordPress and jQuery. July 13th, 2010 com/ajax/libs/jquery/1.3.2/jquery.min.js', false, '1.4 jQuery Library in footer. The default call of wp_enqueue_script Read More


4 Responses to Using jQuery 1.4 as Default on WordPress

  1. Pingback: Aktuelles jQuery Framework in WordPress einbinden | algorhythm developer

  2. Thanks for sharing this, this solved a issue for me

    +1

  3. Terri says:

    Thanks! Stopped jQuery from loading twice; once the “proper way” that weighed 10x google’s api method.

  4. Pingback: Replace jQuery of WordPress with Google AJAX Library | Silver Blog

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>