-
AuthorPosts
-
January 4, 2018 at 11:02 pm #893450
Hello. If you look at the page in the private area as an example, i’m looking to change the color of the header to white.
Thank you,
RyanJanuary 5, 2018 at 2:21 am #893523Hey accurIT,
Try this css at the bottom of your custom css:#header.header_color.av_header_transparency #header_main { background-color: rgba(232, 188, 84, 0.5)!important; } .page-id-85 #header_main { background-color: #fff !important; }The idea is that the top part of the code has a stronger value when the page is not scrolled, and the bottom part of the code does when the page is scrolled. Please try to remove your original colored custom code and Please clear any cache plugin and your browser cache.
Best regards,
MikeJanuary 5, 2018 at 2:25 am #893525Thanks Mike. No luck. No caching in place during dev.
January 5, 2018 at 2:26 am #893527January 5, 2018 at 2:27 am #893528It works until the 767px breakpoint hits.
January 5, 2018 at 3:21 am #893542Hi,
Try this instead:@media only screen and (max-width: 767px) { #header.header_color.av_header_transparency #header_main { background-color: #fff)!important; }} @media only screen and (min-width: 768px) { #header.header_color.av_header_transparency #header_main { background-color: rgba(232, 188, 84, 0.5)!important; } .page-id-85 #header_main { background-color: #fff !important; }}Best regards,
MikeJanuary 5, 2018 at 4:01 pm #893725Thanks for all your help Mike. The following ended up being the fix.
@media only screen and (min-width: 768px) {
.page-id-85 #header.header_color.av_header_transparency #header_main {
background-color: rgba(232, 188, 84, 0.5)!important;
}}January 5, 2018 at 11:32 pm #893890Hi,
I’m glad you were able to get this corrected. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Change Header Background On Scroll’ is closed to new replies.
