WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Whats This

WhatsThis Tooltip Plugin.

Arbitrary section

Loading jQuery before plugins

The correct way to load jQuery into your theme is to load it prior to all plugins being loaded. Having said this know that the plugin loads jQuery seperately in case your theme is not set to load jQuery. To load jQuery from the theme instead of the plugin do the following changes to your theme and plugin files.

Step One: Open your themes functions.php file and add the following code anywhere on the page: if( !is_admin()){ wp_deregister_script('jquery'); wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false, '1.7.1'); wp_enqueue_script('jquery'); }

Step Two: Open the whatsthis.php file and comment out or delete the echo script line on line 21 by adding two backslashes before it ("//"))

// echo "<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'></script> " ;

*Step Three: Upload the saved files to your server.

This will load jQuery into your theme before any plugins get loaded on the page thus eliminating the need for each plugin to load jQuery. When each plugin loads different versions of jQuery on the page this creates compatability issues and will cause your plugins to not work correctly. I seriously suggest the users of FlickrShow to use this method of including jQuery on the page.

Requires: 3 or higher
Compatible up to: 3.3.2
Last Updated: 2012-11-27
Downloads: 2,670

Ratings

4 stars
4.5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,5,5 100,1,1 100,3,3
50,2,1
100,1,1
100,1,1