Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I added the references to some JavaScript files, in my .info file, hoping that they would be output by the $scripts variable in my header. I cleared the cache, and they are still not there.

$Id$
name = site
base theme = boron
core = 6.x
engine = phptemplate
; We do not have a Left sidebar.
;regions[left] = Left sidebar
; We do not have a right sidebar.
;regions[right] = Right sidebar
regions[content] = Content
regions[header] = Header
regions[footer] = Footer
scripts[] = sitename/sites/all/themes/custom/jivamukti/js/jquery.nivo.slider.pack.js
scripts[] = sitename/sites/all/themes/custom/jivamukti/js/scripts/jquery-1.6.1.min.js

I put the JavaScript in the root of the themes folder I am using, instead of /js, and now it is output in this function in my header:

jQuery.extend(Drupal.settings,…);

How do I just get it to display inside the <script></script> tags?

share|improve this question

2 Answers

up vote 5 down vote accepted

The file path should be relative to the theme directory not the root directory; try it with js/jquery.nivo.slider.pack.js instead of sitename/sites/all/themes/custom/jivamukti/js/jquery.nivo.slider.pack.js.

share|improve this answer

Go to "Administrator > Site building > Themes"; select the theme, save again, and refresh.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.