[Resolved] Disable menu Background Current colour on the home page

Home Forums Support [Resolved] Disable menu Background Current colour on the home page

Home Forums Support Disable menu Background Current colour on the home page

  • This topic has 7 replies, 2 voices, and was last updated 3 years ago by Leo.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #545448
    Charles

    Hi Tom,

    What’s the easiest way to do this? I want a background menu colour on every page except the home page – which I think is a standard practice. Do I have to create a custom template for the home page or is their an easier way to target this?

    Thanks
    Charles

    #545598
    Leo
    Staff
    Customer Support

    Hi there,

    Can you link me to the site in question?
    Just need to see what layout you are using so I can provide the best method.

    You can edit the original topic and use the private URL field.

    Let me know ๐Ÿ™‚

    #547270
    Charles

    It’s in localhost for development so I can’t give you a URL, but here’s a jpg of the home page.

    ZooWoods home page

    I just want to disable the background colour on “Home” but have it appear when you’re on all the other pages.

    Charles

    #547411
    Leo
    Staff
    Customer Support

    Hmm background color of what? The body? It looks like it’s using a background image?

    #547660
    Charles

    Background colour of the Home button.

    #547764
    Leo
    Staff
    Customer Support

    Hmm try this CSS:

    .home .main-navigation .main-nav ul li[class*="current-menu-"] > a {
        background-color: transparent;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #551721
    Charles

    That does it! Thanks Leo. It might be a good idea to work that into the cusomtizer as an option at some point. Most of the time if you do a menu like that with a Home button, clients don’t want it to be highlighted – but they do on every other page.

    Charles

    #551746
    Leo
    Staff
    Customer Support

    We will keep this in mind ๐Ÿ™‚

    No problem!

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