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

Replace jQuery of WordPress with Google AJAX Library

I will show you little code How To Replace jQuery of WordPress in your Theme with Google AJAX Library, like we all know, WordPress has built in a lot of JavaScript Framework included jQuery, but for some reason such as … Read More

jQuery noConflict wrappers on WordPress

WordPress is wonderful publishing platform with many JavaSript Framework including jQuery. Until today jQuery is one of my favorite JavaScript library, it's more easy, a lot of plugin available and I have wonderful jQuery guru ;) Some problem on j

The Right Way to Change The Default Gravatar in WordPress

I will show you How to Change the Default Gravatar in WordPress, why? Because one of my favourite WordPress Comment enhancement is added Gravatar, after Gravatar become Automattic Family, Gravatar become more and more better. Especially integrated wi

How To Set HTML editor as the default on WordPress

Like we all know, WordPress has two editor mode, Visual and HTML. Now using WordPress add_filter() we can force WordPress to set HTML Editor as default WordPress Post editor. Let's do it, first open your functions.php your current themes and … Read More

Remove the link to parent pages when using wp_list_pages as WP Navigation

How to remove the link to parent pages when using wp_list_pages in WordPress navigation is today tips that we want to share. This code original by Digital Forum user and shared by WP Garage. This tricks using pure jQuery, how … Read More

How To Set default Content in WordPress editor

There are some reason we need to add automatically default content in WordPress Post. The main reason for us is, re write some content again and again, It's really pain. Justin Tadlock has been create some function and this function … Read More

Using jQuery 1.4 as Default on WordPress / WordPress Tricks & Tips

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 read more

Source: http://wptricks.net/using-jquery-as-default-on-wordpress/

5 Tips For Using jQuery with WordPress / Eric Martin

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

Source: http://www.ericmmartin.com/5-tips-for-using-jquery-with-wordpress/

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

Source: http://www.wpbeginner.com/wp-themes/replace-default-wordpress-jquery-script-with-google-library/

Function Reference/wp enqueue script « WordPress Codex

Load a default WordPress script from a non-default location . Please as an alias for jQuery() inside of this function })(jQuery); Default scripts included with WordPress read more

Source: http://codex.wordpress.org/Function_Reference/wp_enqueue_script

5 tips for using AJAX in WordPress | Gary Cao

In this version of WordPress, the default jQuery version is 1.3.2 . In jQuery 1.3.2 or earlier wp_enqueue_script( 'myjQuery', plugin_dir_url( __FILE__ ) . 'js/jquery.1.4 read more

Source: http://www.garyc40.com/2010/03/5-tips-for-using-ajax-in-wordpress/


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>