[Support request] Different color in the sticky menu

Home Forums Support [Support request] Different color in the sticky menu

Home Forums Support Different color in the sticky menu

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1351487
    Simone

    Hi

    Is it possible to make the sticky menu in a different color when scrolling down the page?

    Thank you!

    #1351778
    David
    Staff
    Customer Support

    Hi there,

    can you link us to your site so i can take a look at the simplest method ?

    #1351882
    Simone
    #1351940
    David
    Staff
    Customer Support

    Takes some CSS:

    /* Set Background of navigation bar */
    .sticky-enabled .main-navigation.is_stuck {
        background-color: #000000;
    }
    
    /* Set menu item colors */
    .sticky-enabled .main-navigation.is_stuck .main-nav ul li>a {
        color: #ffffff;
        background-color: #000;
    }
    
    /* Set meni item current and hover color  */
    .sticky-enabled .main-navigation.is_stuck .main-nav ul li:hover>a,
    .sticky-enabled .main-navigation.is_stuck .main-nav ul li[class*="current-menu-"]>a {
        color: #000000;
        background-color: #ffffff;
    }
    #1351972
    Simone

    Thanks a lot. Where should I put this code?

    #1352043
    Leo
    Staff
    Customer Support
    #2078448
    Artur

    David i use that css
    /* Set Background of navigation bar */
    .sticky-enabled .main-navigation.is_stuck {
    background-color: #000000;
    }

    /* Set menu item colors */
    .sticky-enabled .main-navigation.is_stuck .main-nav ul li>a {
    color: #ffffff;
    background-color: #000;
    }

    /* Set meni item current and hover color */
    .sticky-enabled .main-navigation.is_stuck .main-nav ul li:hover>a,
    .sticky-enabled .main-navigation.is_stuck .main-nav ul li[class*=”current-menu-“]>a {
    color: #000000;
    background-color: #ffffff;
    }

    But on mobile mine header is only white.

    #2078454
    Ying
    Staff
    Customer Support

    Hi Artur,

    Can you open a new topic and link us to your site?

    The CSS is site dependent as you might not be using the same settings as the topic starter.

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