O'Reilly logo

Drupal 7 by David Mercer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

jQuery in action

As much as we are demonstrating jQuery in action, this section also shows off .info in action. Open up your current theme's folder and add a new file entitled jquery_test.css with the class definition that will be used in the example:

jQuery in action

Next, create a new JavaScript file, entitled jquery_test.js, to house the jQuery call and add it to the same folder:

jQuery in action

Next, edit the theme's .info file to ensure that the theme can locate the new CSS and JavaScript files. For example:

regions[page_top] = Page top regions[page_bottom] = Page bottom ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required