0

Why is my jquery.js file not found when I use this code in my theme.info?

Im using drupal 7.

scripts[] = js/jquery.js

I got this code from the drupal page and I'm 100% sure its the right path. what did i do wrong here?

Thanks for helping!

4
  • 1
    Explaining how to properly replace Drupal's jQuery in a module would require a copy of jQuery Update, all it's issues, explanations, comments etc. I honestly don't think it is possible in Q&A format. Why not to just use that module?
    – Mołot
    Commented Nov 14, 2014 at 9:08
  • 1
    Have to agree with @Mołot, jQuery Update module is the way to go here. You could always use hook_js_alter() and just unceremoniously overwrite the path to core's version of that file, but the jQuery Update module has already done all of the hard thinking for you about compatibility with existing modules and core
    – Clive
    Commented Nov 14, 2014 at 9:10
  • or if it not an update of jquery and any custom code is written then change the file name.. and if any changes made to theme.info then drupal cache needs to be clear.. Commented Nov 14, 2014 at 9:20
  • oh yeah good idea gonna clear the cache :)
    – Stefan
    Commented Nov 14, 2014 at 9:22

1 Answer 1

1

Clear your cache. I think it may work for you.

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