jQuery noConflict wrappers on WordPress


Sponsored Links






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 jQuery and other JavaScript library is, conflict between this library. To eliminate this problem, jQuery has method by added some code jQuery.noConflict(); and don’t worry, WordPress has been added some tricks and added this featured too, using jQuery with other libraries in WordPress is easy, all need to do just write your JavaScript Code like on this example

jQuery(document).ready(function($) {
    // $() will work as an alias for jQuery() inside of this function
});


That wrapper will cause your code to be executed when the page finishes loading, and the $ will work for calling jQuery. If, for some reason, you want your code to execute immediately (instead of waiting for the DOM ready event), then you can use this wrapper method instead:

(function($) {
    // $() will work as an alias for jQuery() inside of this function
})(jQuery);

I hope this tricks for using jQuery on WordPress working great on your blogs and you didn’t found any problem on it.

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

Using jQuery 1.4 as Default on WordPress

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 … 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 Fix Empty Searches and Prevent Duplicate Content

For some reason, sometimes our loyal readers search something and forget put keyword query. This is badly and able to get duplicate content warning from Google. We have already know we can added extra code on header.php such as <link … Read More

How To Add a Copyright Notice to Copied Text on WordPress

For some reason, we want to added extra copyright information, when some reader or internet user copy our content. This code using Pure JavaScript and written by Batovasan on this post. I will try to rewrite this code on this … Read More

How to make a rounded corner support all browser

Creating a beauty WordPress themes is not an easy jobs to do. We need to design first from some image editing like a Adobe Photoshop, Ilustrator, or else. We must get use to make a design from the scratch and … Read More

jQuery noConflict wrappers on WordPress / WordPress Tricks & Tips

How To Fix Empty Searches and Prevent Duplicate Content. For some reason, sometimes our loyal readers search something and forget put keyword query. read more

Source: http://wptricks.net/jquery-noconflict-wrappers-on-wordpress/

Function Reference/wp enqueue script « WordPress Codex

jQuery noConflict wrappers . Note: The jQuery library included with WordPress loads in "no conflict" mode. This is to prevent compatibility problems with other javascript read more

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

WordPress › Support » jQuery.noConflict Issue

For those having the same problem, I found the answer here: http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_wrappers read more

Source: http://wordpress.org/support/topic/jquerynoconflict-issue

WordPress › Support » WordPress / jQuery

that The jQuery library included with WordPress loads in "no conflict" mode: http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_wrappers read more

Source: http://wordpress.org/support/topic/wordpress-jquery

update wordpress jquery version - WordPress Tricks & Tips

Daily The Best WordPress Tricks and WordPress Tips to make your jQuery noConflict wrappers on WordPress read more

Source: http://wptricks.net/archives/update-wordpress-jquery-version?amp


3 Responses to jQuery noConflict wrappers on WordPress

  1. Pingback: How To Using jQuery 1.4 as Default on WordPress # WordPress Tricks & Tips

  2. Pingback: How to remove the link parent pages wp_list_pages in WP # WordPress Tricks & Tips

  3. Pingback: wp-popular.com » Blog Archive » jQuery noConflict wrappers on WordPress # WordPress Tricks

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>