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

Another question for you guys. Let me first explain that I am adding javascript files the way I think they are supposed to be added, by putting them in my template file using drupal_add_js. However, a couple of my files don't seem to be firing correctly. I should note that I am wrapping everything with (function ($){})(jQuery);. Funny thing is, is when I add them to header, the ones causing me the issue's don't fire. But when I add them to the footer through the html.tpl.php file under a new jquery file they fire perfect. It is almost like they are getting lost among all of the js files added by Drupal.

Is there any way to add my files above Drupal's files under right under the jquery file?

share|improve this question
1  
have you tried to declare javascript files in theme .info file using scripts[] = js/script.js – Aboodred1 May 9 at 23:30
Yes I have, but my js file is still not firing. I should probably further explain that I am using a custom flexslider for my home page. I am wanting to do this with out using a module, which so far I have been successful, except for the flexslider.js file. – CodeWeaver May 10 at 13:05

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.