Hi there
Please can you give me the CSS to target the colour of the Active Menu Item in the Submenu? I am using the following for the Main Menu and the Mobile Menu but I don’t have the CSS for the Submenu:
#avia-menu .current-menu-item > a {
color: #66b255;
}
#mobile-advanced li.current-menu-item > a {
color: #66b255;
}
Thanks
CJ
Hey jaroljmek!
Same code works, the color just gets overriden by other css, try to change your code to this:
#avia-menu .current-menu-item > a {
color: #66b255 !important;
}
#mobile-advanced li.current-menu-item > a {
color: #66b255 !important;
}
Hope this helps :)
Cheers!
Nikko
Hi there Nikko
That worked for the submenu item. But now how can I also ensure that the parent menu item also displays the active colour?
Many thanks!
CJ
Hey!
You can use this code for parent page:
#avia-menu .current-page-parent > a,
#mobile-advanced li.current-page-parent > a {
color: #66b255 !important;
}
Let us know if it works ;)
Regards,
Nikko