Tagged: active menu item, Burger Menu, Current Page, current-menu-item, Enfold 4.0, menu-item, mobile menu
Hi,
I would just like to know if it is possible to style the current/active menu/page item for the new mobile menu (the burger)?
I don’t seem to see a class for it like the old burger that was available on desktop only.
Please could you kindly assist.
Thank you.
Hey Cordell,
If you have CSS skills, you can use the same global classes, but inside a Media Query.
Best regards,
John Torvik
Hi John,
I have used this bit of CSS on a previous site with the old burger menu set as the main desktop menu (before the burger began to be used as the new mobile menu):
/* to style the active burger menu item */
.header_color .main_menu ul:first-child > li.current-menu-item > a, .header_color .main_menu ul:first-child > li.current_page_item > a {
color: #12d80c !important;
}
I have tried this on the new burger menu (mobile only) but it doesn’t seem to work. I then tried this:
/* to style the active burger menu item */
@media screen and (max-width: 480px) {
#av-burger-menu-ul:first-child > li.current-menu-item > a, #av-burger-menu-ul:first-child > li.current_page_item > a {
color: #12d80c !important;
}
}
Still not working. Please could you kindly assist.
Thank you.
Hi, after the homepage update to the latest enfold version! (4.1.2) I would like to style the burger current/active menu/page new. The old css code doesn’t work. Thx in advanced for your helping.
Best wishes
Tom
Hi @cordellbrewer and @thobbes,
As mobile menu items do not have unique selectors, it is currently not easily possible unfortunately. However, our devs are already aware of it and i believe it will be added in upcoming update. Sorry for the inconvenience and thanks for your understanding!
Regards,
Yigit
Hi Yigit,
Aaaahhh :(
Ok cool. I thought so.
Will eagerly await for the update.
Have a great weekend :)