Like the blog? Get the book »

Daily archives: Monday, September 5, 2011

Archive page 1 of 1
Using ‘$’ instead of ‘jQuery’ in WordPress

Using ‘$’ instead of ‘jQuery’ in WordPress

WordPress ships with its own version of the jQuery library (for longevity’s sake, as I write this WordPress is at version 3.2.1).

So to use jQuery in your WordPress plugins and themes “The Right Way” all you need to do is enqueue the script (probably via your theme’s functions.php file). Here is a basic example:

© 2009–2024 Digging Into WordPress Powered by WordPress Monzilla Media shapeSpace