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.
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
Thank you so much, that worked! Is there a way for me to change the menu text color just on scroll?
Hi,
Yes, you can set that under Enfold->Header->Transparency options.
Best regards,
Rikard
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.
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
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?
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
Thank you! Works perfectly!
Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon