Site logo

Archived topic

generatepress nav button text color when selected

3 replies · Started by Ricardo on January 6, 2022

Viewing posts 1–4 of 4

Hello,

I followed this instructions

https://docs.generatepress.com/article/adding-buttons-navigation/

to create a menu button here

https://wordpress-89823-1807255.cloudwaysapps.com/

But I don't know how to change the text color when that page is selected. The problem is that I need it to be white, like the others when selected, but it's keeping the black text, wich makes it unreadable when it is selected.

Is it possible to help me with that please?

Thanks a lot!

Hi there,

add this CSS to change its text color when its the current page:

.main-navigation .main-nav ul li[class*="current-menu-"].nav-button > a {
    color: #fff;
}

Thank you very much for your kind help. Works great.

Best regards,
Ricardo

Happy to be of help!

This archived topic is closed to new replies.