ComputerWolf / SlickNav

Responsive Mobile Menu Plugin for jQuery
MIT License
939 stars 314 forks source link

Menu doesn't load when a certain JS file is included. #23

Closed HealingRooms closed 10 years ago

HealingRooms commented 10 years ago

Responsive Slides v1.54, available at responsiveslides.com, seems to be conflicting with the SlickNav menu.

When both SlickNav and ResponsiveSlides are called on the same page, only ResponsiveSlides works.

ResponsiveSlides is an image / link cycler ideal for a front page, and is designed to be ideal for mobile devices, adjusting its size based on the screen dimensions.

If I disable ResponsiveSlides, then the SlickNav menu appears again.

I thought you would want to know about this conflict.

ComputerWolf commented 10 years ago

@HealingRooms, would you mind if I take a look at some code? I have actually done many sites with ResponsiveSlides and SlickNav without a conflict. http://ruedumainerestaurant.com/ is one recent example.

HealingRooms commented 10 years ago

Thank you for looking! I put two different web pages (with and without ResponsiveSlides) into a zip file: https://www.dropbox.com/s/0fcp36tlf17p6hb/HealingRooms_withResponsiveSlides.zip

ComputerWolf commented 10 years ago

@HealingRooms, the problem was that you were including the jQuery file with SlickNav but then including it again with ResponsiveSlides. jQuery should only be included once. If you remove all instances except one it works fine. Simply make sure you include jQuery before any scripts that need it.

HealingRooms commented 10 years ago

Thanks for finding that!