[Resolved] Update current item background color for only one specific menu item

Home Forums Support [Resolved] Update current item background color for only one specific menu item

Home Forums Support Update current item background color for only one specific menu item

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1372575
    Laine

    I applied custom styling to one of my navigation items (so it’s like a button) but I can’t seem to update the background color for when it’s the current page.

    I have this code:

    .main-navigation .main-nav ul li[class*=”current-menu-“] > a {
    background-color: #B16049;
    }

    and I tried this, but it didn’t work:

    #menu-item-1035 .main-navigation .main-nav ul li[class*=”current-menu-“] > a {
    background-color: #B16049;
    }

    Any ideas what I need to add to target just that menu item?

    #1372578
    Leo
    Staff
    Customer Support

    Hi there,

    Your site is locked with a password so I can’t see.

    Would something like this help?
    https://docs.generatepress.com/article/adding-buttons-navigation/

    #1372585
    Laine

    That fixed it, thanks!

    #1372586
    Leo
    Staff
    Customer Support

    No problem 🙂

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