Hi Enfold team,
on our website, I have an issue with the wrong main menu item being hightlighted wenn scrolling down. It works like a charm on all other pages of the website, just not on this one. It keeps jumping back and forth between the first and second menu item.
What am I missing? :-/
Hey fkmediaworks,
Thank you for using Enfold.
That is quite odd. I’m not really sure what’s causing the active menu indicator to switch like that. Did you add any anchors in the page?
Best regards,
Ismael
HI Ismael,
yes, sorry, forgot to mention that I’ve used anchors – but also on the other pages of the website where the error doesn’t occur. Hence I’m in a bit of a loss here…
Hi,
Where did you add the anchors? Are they related to the sub menu items? Please post the login details in the private field so that we can check the page.
Best regards,
Ismael
Hi Ismael,
Added anchors in separate Code Blocks, and yes, sub menu items are using them.
Thanks!
Hi,
You should apply unique names to those anchors because they are being treated as the same. For example, the “#leistungen” anchor should be replaced with “#leistungen-catering” or whatever name you prefer as long as it differs from the other anchor.
Best regards,
Ismael
HI Ismael,
thanks so much – this completely solved the issue. Wasn’t aware that same-name anchors on other pages affected the behavior (and sorry if I overlooked this info somewhere else in this forum).
Case closed :)
Hi,
You’re welcome. Glad we could help.
Don’t hesitate to open a new thread if you need anything else. And if you have the time, please take a moment to review our theme and show your support https://themeforest.net/downloads
Don’t forget to bookmark Enfold Documentation for future reference.
Thank you for using Enfold. :)
Best regards,
Ismael