Skip to content

How to add custom jQuery to a Drupal site (shortest tutorial ever)

Edit your theme's .info file and add a reference to your script:

scripts[] = scripts/scriptname.js

Yup.

(of course, there's many ways, and if working with a module, drupal_add_js( ) is probably a better choice).

My first major Drupal jQuery project is nearing 1.0 completion, and it's definitely quite snazzy. The next step is to explore more animation features. Any favorites?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.