Why isn't my dropdown working on this page?

Hi, on www dot magickitchen.com, on all pages the dropdown under Menu, Support, More, all those navigation dropdowns work. Except one.

magickitchen.com/exercises/workout-videos.html - on this one, the ekko lightbox works, the videos pop up, but the navigation drop-downs are not working. Can you help?

Thanks.
mel200Asked:
Who is Participating?
 
Julian HansenConnect With a Mentor Commented:
There are errors on that page. If I debug it it looks like the following code does not fire

 e('#main-nav .dropdown').on('show.bs.dropdown', function () {
    e(this).find('.dropdown-menu').first().stop(!0, !0).fadeToggle(200)
  }),

Open in new window

The hide always fires on click.
Not sure why but it might have to do with the errors which refer to the headroom() function not being available. If we look at more of the code in scripts.js
s > 991 && e('.navbar#main-nav').headroom(),
  767 > s && e('#main-nav .navbar-header').headroom(),
  e('#main-nav .dropdown').on('show.bs.dropdown', function () {
    e(this).find('.dropdown-menu').first().stop(!0, !0).fadeToggle(200)
  }),

Open in new window

We see headroom is being called there - but as part of a single comma separated statement.
Just for giggles try putting the e('#main-nav ...) on its on line preceeded by a ';' instead of a ',' and see if that makes a difference.

Also look into why the headroom error is happening.
1
 
mel200Author Commented:
I had two problems... one was I was repeating js code unnecessarily, and second, I then after I cleaned that up, I realized that the jquery needed to be called before the ekko code. Everything works now, thanks!
0
 
Julian HansenCommented:
You are welcome.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.