Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Secondary Navigation Button Color

  • Hi —
    I’d like to set a color on the first item in this secondary navigation, placed before the header on my site. I have added a custom class – ac-button – as outlined here https://docs.generatepress.com/article/adding-buttons-navigation/, but the color isn’t showing up for me. Can you help me to troubleshoot this?
    Thanks!

  • Hi there,

    Can you disable your caching plugin first so I can see the CSS you are adding?

    Thanks!

  • There’s no caching plugin, but it is on WP Engine. I’m not sure what I need to do…?

  • Can you provide the CSS you’ve added here?

  • Sure — I used —

    @media (min-width:769px) {
        .secondary-navigation .main-nav ul li.ac-navbutton a {
            background-color: #f3c559;
            color: #ffffff;
            line-height: 35px; /*this number will likely need to be adjusted*/
        }
    }

    ac-navbutton is the name I added in the Custom Class field on the menu item.

    Thanks!

  • ac-navbutton is the name I added in the Custom Class field on the menu item.

    The class name you added is actually ac-button:
    https://www.screencast.com/t/QqWyveCXbmeS

    So your CSS should be:

    @media (min-width:769px) {
        .secondary-navigation .main-nav ul li.ac-button a {
            background-color: #f3c559;
            color: #ffffff;
            line-height: 35px; /*this number will likely need to be adjusted*/
        }
    }

    If this still doesn’t help then please check with your hosting support to see how to disable caching.

    Let me know 🙂

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