Archived topic
Disable active text only for Home
1 reply · Started by Rafael on October 1, 2017
Hello guys, how are you doing?
I would like to know if there is any way to disable the Active Text color (active page) only for Home. I ask it because my homepage is divided by sections and I'm using anchors to target it, so the menu stay with 4 items with the color of active page because they are all poiting to HomepageURL / # anchor.
Any suggestion?
Hi there,
You would have to go with CSS solution like this:
.home .main-navigation .main-nav ul li[class*="current-menu-"] > a {
color: #ffffff;
background-color: #000000;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/