I'm having an issue with my menu on the responsive size. For some reason my menu doesn't collapse so I cannot see any of my items on my menu on a tablet or a mobile. Using the inspect element I check and all the pages from my menu are in the html but the collapsing part is not working anymore. I'm currently using the Project Bootstrap .

Can anyone provide me some tips on how to troubleshoot this problem? Any help will be appreciated.

  • 2
    Upgrade you jQuery to 1.9+ as the documentation at Project Bootstrap requires. It is at 1.7.1 currently. – J. Reynolds Sep 2 '14 at 4:57
  • @J.Reynolds Using the Jquery_update module I change my Jquery version to 1.10 and this still not working. Also, I clear caches and still not working. – darol100 Sep 2 '14 at 5:17
up vote 1 down vote accepted

Taking a look at the HTML on your homepage there, I'm seeing you're loading bootstrap in your <head> section, and then calling jQuery from near the footer, way down on line 223 (that'd be the line <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>. That's why I'm at least seeing the error Uncaught Error: Bootstrap requires jQuery. You want to load jQuery before you load Bootstrap, so ultimately your <head> should include the two lines:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js"></script>

I hope this at least gets you closer.

  • Yes, that is the problem. Good spotting. Though as he is using Bootstrap 3 he needs at least jQuery 1.9+ as well. – J. Reynolds Sep 2 '14 at 5:29
  • Thank you so much guys. I was using the advagg module and this change the Jquery_Update to 1.7. I'm not currently using this module so I remove it and the menu is working properly. Thank you guys. – darol100 Sep 2 '14 at 5:39

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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