Site logo

[Resolved] How Do I Make the Primary Navigation Do This?

Home Forums Support [Resolved] How Do I Make the Primary Navigation Do This?

Home Forums Support How Do I Make the Primary Navigation Do This?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1229610
    RJ

    Hey there – I trust support members are keeping well.

    I want one link in my primary navigation to have a different colour as well as when you hover over it.

    It’s the DONATE link I want to make stand out.

    How do I do that?

    TIA, Robin

    #1229635
    David
    Staff
    Customer Support

    Hi Robin – very well thanks hope the same goes for you.

    You can add a Custom CSS Class to that menu item:

    https://docs.generatepress.com/article/using-the-wordpress-menu-builder/#custom-classes

    E.g adding Custom Class of: donate-menu

    And then use it to style that item differently:

    .main-navigation .main-nav ul li.donate-menu a {
        background-color: red;
    }
    
    .main-navigation .main-nav ul li.donate-menu:hover a {
        background-color: blue;
    }

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

    #1229719
    RJ

    Perfect! Thanks so much, David. And yes, all good around here.

    #1229720
    David
    Staff
    Customer Support

    You’re welcome – glad to hear it

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