0

I'm trying to include a simple javascript into my theme using the theme.info

It works like a charm on my home-setup but when I try to load in on a real page it doesn't include the .js-files (not even an empty <script>-Tag is displayed in the source).

The Code:

...
engine = phptemplate
stylesheets[all][] = css/bjqs.css
stylesheets[all][] = css/style.css
scripts[] = js/bjqs-1.3.js 
scripts[] = 'js/jquery-latest.min.js'
features[] = main_menu
regions[slider] = Slider
...

The CSS-Files get included on both projects without any problem.

2
  • 1
    The Js file you try to incude is bjqs-1.3.js ? Drupal is already bundled with jQuery, could you tell me why you include jQuery using the theme.info?
    – gerzenstl
    Sep 29, 2015 at 1:23
  • Also, if you're looking to change the version of jQuery being used by Drupal, take a look at the jquery_update module.
    – Darvanen
    Sep 29, 2015 at 3:46

1 Answer 1

0

Do you have aggregation on in configuration > development > performance?

If so, this causes the problem. Clear all caches, and the problem should be solved.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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