Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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,
    Ryan

    #893523

    Hey 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,
    Mike

    #893525

    Thanks Mike. No luck. No caching in place during dev.

    #893527

    ..

    #893528

    It works until the 767px breakpoint hits.

    #893542

    Hi,
    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,
    Mike

    #893725

    Thanks 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;
    }}

    #893890

    Hi,

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Change Header Background On Scroll’ is closed to new replies.