Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1162786

    I would like my header to be a transparent black on scroll so I am using the following css, however it is just making the header gray? Is there an element behind the header that is white which is showing through?

    /*header change on scroll*/
    #top #header.header-scrolled #header_main {
    background: rgb(0,0,0,0.5);
    }

    Thanks for your help.

    #1162954

    Hey Mary,

    Please add following code to Quick CSS in Enfold theme options > General Styling

    #top #header.header-scrolled .header_bg {
        background: transparent;
    }

    Best regards,
    Yigit

    #1163208

    Thank you so much, that worked! Is there a way for me to change the menu text color just on scroll?

    #1163291

    Hi,

    Yes, you can set that under Enfold->Header->Transparency options.

    Best regards,
    Rikard

    #1164194

    Hi Rikard, I changed the menu color in the Transparency options, but this made no change to the menu font color while scrolling. I would like to have the menu font color change to white when I scroll down on the page.

    #1164267

    Hi,

    Add this to quick css:

    .header-scrolled.header-scrolled-full .menu-item.menu-item-top-level a .avia-menu-text{
    color:#fff!important;
    }
    
    .header-scrolled.header-scrolled-full .menu-item.menu-item-top-level .sub-menu a .avia-menu-text{
    color:#000!important;
    }

    Best regards,
    Jordan Shannon

    #1164289

    Thank you, this almost does it! There is a point when you first start scrolling that the font turns to dark gray and when you get further down the page it then turns to white. I am not sure where in my settings it is changing it to that dark grey, but I would like it to go straight to the white.
    Also, is there a way to keep the button orange while the font turns white?

    #1164382

    Hi,

    Please try changing Jordan’s code to following one

    .header-scrolled .menu-item.menu-item-top-level a .avia-menu-text{
    color:#fff!important;
    }
    
    .header-scrolled .menu-item.menu-item-top-level .sub-menu a .avia-menu-text{
    color:#000!important;
    }
    
    #top #header .av-main-nav > li.av-menu-button-bordered > a .avia-menu-text {
        color: #f6941d!important;
    }

    Best regards,
    Yigit

    #1164702

    Thank you! Works perfectly!

    #1164707

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘I would like my header to be a transparent black on scroll’ is closed to new replies.