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?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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!
Julian HansenCommented:
You are welcome.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.