[Resolved] Sticky nav button background

Home Forums Support [Resolved] Sticky nav button background

Home Forums Support Sticky nav button background

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1130256
    Marcus

    Hello, I’d like to have a single CTA-style button to my sticky-nav so it looks like this:

    Is this possible? I couldn’t find any way of changing the background colour of the buttons (the only option is the background of the entire bar, and the background on hover)

    #1130430
    David
    Staff
    Customer Support

    Hi there,

    Add this CSS:

    .main-navigation .main-nav ul li.nav-button a {
        background-color: #4dc28b;
        line-height: 48px !important;
    }

    then add the nav-button class to that menu item:

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

    #1130440
    Marcus

    You’re a legend, thank you!

    #1130467
    David
    Staff
    Customer Support

    Glad to be of help

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