-
AuthorPosts
-
February 26, 2019 at 10:15 pm #1072007
Hello
For transparent pages, I’ve tried a bunch of code (see below – more there than needed but commented out to what almost works), but would like to control the color of the secondary menu and the main menu as unique BOTH before and after scrolling. Eg, (just working settings), I’d like to have this:BEFORE SCROLLING
Secondary menu background is white
Main menu background is blackAFTER SCROLLING (reverse the colors)
Secondary menu background is black
Main menu background is whiteHere’s my working code – I’ve managed to target secondary before and after scrolling, but can’t target the main menu after scrolling. Also, a 1px line appears on scrolling and I can’t find the element to hide that as well. My working page is in the private section. Thank you! :)
/* TRANSPARENT HEADERS ***************************************/ /* main & sec menu before scrolling - covered with #header_main - default is transparent */ header#header.av_header_transparency { /* background: black; */ /* background: transparent; */ /* background-color: rgba(0,0,0,0.7); */ } /* sec menu after scrolling */ .html_header_transparency #header_meta { background: black; } /* main menu before and after scrolling */ #header_main { background: black; /* background: rgba(0,0,0,0.3); */ /* background-color: rgba(0,0,0,0.7); */ border-bottom-width: 0px !important; } /* main & sec menu before scrolling */ #top .av_header_transparency { background: white; } /* main & sec menu before & after scrolling */ #top #header .header_bg { /* background: red !important; */ /* opacity: 1; */ /* border-bottom-width: 0px !important; */ /* background: transparent; opacity: 0; filter: alpha(opacity=0); */ }
March 1, 2019 at 5:53 pm #1073299Hey webWahine,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
.av_alternate_logo_active #header_main { background-color: #fff; } .av_header_transparency #header_main { background-color: #000; } #header_meta, #header_main.container_wrap { border-bottom: none; border: none; }
If you need further assistance please let us know.
Best regards,
VictoriaMarch 2, 2019 at 7:00 pm #1073679Perfect, thank you so much! I see that the css needs to be in the same order :)
March 2, 2019 at 9:44 pm #1073722One more quick question, please. The 1px bottom border disappears below the main menu on scroll but is still there before scrolling. Please advise.
/* remove 1px hor line with scroll after scrolling - not before! */ #header_meta, #header_main.container_wrap { border-bottom: none; border: none; }
March 4, 2019 at 1:03 pm #1074339Hi webWahine,
Try adding this css code in Quick CSS:
.html_header_top.html_header_topbar_active.html_header_sticky #top #main { padding-top: 118px; }
Best regards,
NikkoMarch 4, 2019 at 8:17 pm #1074504Perfect! Thank you! I assume that if I set the header menu area to custom I’d have to tweak this amount a bit? :)
March 5, 2019 at 2:01 am #1074573Hi,
Yes, if there is an adjustment on the header, you may need to make a tweak but nothing too major.
Best regards,
Jordan ShannonMarch 5, 2019 at 2:27 am #1074580Makes sense! Thanks again; it’s hard to find the correct element sometimes :)
March 5, 2019 at 2:54 am #1074597Hi,
I’m happy this was resolved for you. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Different background colors for main and secondary menus on transparent pages’ is closed to new replies.