[Resolved] Conditional navigation bar background CSS

Home Forums Support [Resolved] Conditional navigation bar background CSS

Home Forums Support Conditional navigation bar background CSS

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #808388
    Mattia

    Hi,

    I have a nav bar with transparent BG and merged with header (Through Elements). That happens on my homepage.

    In all other pages, I want the background in a solid colour without any transparency.

    I’m pretty sure it could be possible through CSS, any advice to make it right? Alternatively, I’m considering to use the primary nav only on the homepage and the secondary one, properly styled, in the rest of the website.

    Best

    Mattia

    #808547
    Leo
    Staff
    Customer Support

    Hi there,

    You can change the navigation background color specific to that header element in the option:
    https://docs.generatepress.com/article/header-element-overview/#site-header

    Then you can just set the solid color you want on other pages in the customizer.

    Let me know if this makes sense 🙂

    #808703
    Mattia

    Perfect! That works just nice!

    #808788
    Leo
    Staff
    Customer Support

    Awesome!

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