Archived topic
Menu current colour
3 replies · Started by Rafał on February 25, 2019
Hi Tom and Team,
I've got a menu on my webpage that used to link to anchors on the same page.
Now I created a blog using the same menu and I've changed my menu links from:
#WHATEVER
to:
mydomain.com/#WHATEVER
It works fine however thare's a small glitch, when I'm on the homepage all the menu items won't highlight on hover because they are all coloured as "current" (because all anchors' URLs start with my homepage address). Is there a workaround to this please?
Many thanks for your help.
Rafał
Hi there,
you can try overwriting it with some CSS:
.main-navigation .main-nav ul li[class*="current-menu-"]:hover > a {
color: #072b40;
background-color: #ffd86b;
}
Yup, that's been sorted :)
Many thanks David!
Glad to be of help