[Resolved] generatepress nav button text color when selected

Home Forums Support [Resolved] generatepress nav button text color when selected

Home Forums Support generatepress nav button text color when selected

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2071551
    Ricardo

    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!

    #2071691
    David
    Staff
    Customer Support

    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;
    }
    #2071752
    Ricardo

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

    Best regards,
    Ricardo

    #2072232
    David
    Staff
    Customer Support

    Happy to be of help!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.