Tagged: active menu item, Burger Menu, Current Page, current-menu-item, Enfold 4.0, menu-item, mobile menu
-
AuthorPosts
-
July 28, 2017 at 11:35 am #831003
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.
August 1, 2017 at 9:13 am #832694Hey Cordell,
If you have CSS skills, you can use the same global classes, but inside a Media Query.
Best regards,
John TorvikAugust 1, 2017 at 1:26 pm #832851Hi 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.
August 3, 2017 at 9:18 pm #834023Hi, 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- This reply was modified 7 years, 3 months ago by THobbes.
August 3, 2017 at 9:54 pm #834041Hi @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,
YigitAugust 4, 2017 at 10:23 am #834257Hi Yigit,
Aaaahhh :(
Ok cool. I thought so.
Will eagerly await for the update.Have a great weekend :)
August 4, 2017 at 10:32 am #834262 -
AuthorPosts
- The topic ‘Enfold 4.1.2 – Style new mobile menu: Current item/page’ is closed to new replies.