Reply To: Anchors highlighted in navmenu

Home Forums Support Anchors highlighted in navmenu Reply To: Anchors highlighted in navmenu

Home Forums Support Anchors highlighted in navmenu Reply To: Anchors highlighted in navmenu

#151076
Tom
Lead Developer
Lead Developer

I couldn’t tell you why really, all I can tell you is that it looks like WordPress is trying to be smart by highlighting the menu item because the URL is equal to your front page URL.

If you were to remove the front page URL (http://www.emirose.ro/) from the menu item, it won’t highlight.

This is just WordPress being WordPress – sometimes it’s very convenient, as we usually want the “Home” menu item to be highlighted when we’re on the homepage – it’s just in this case it’s not what we want.

You can always just tell it to look normal:

#menu-item-47 a {
    background-color: transparent;
    color: white;
}

#menu-item-47 a:hover {
    color: #c6394f;
    background-color: #f9e8e3;
}