Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1479688

    Hey Mike,

    you helped me the other day with some CSS for a transparent header on mobile:

    I’m still working on it, but I discovered that the code I had found elsewhere on the forum isn’t playing nicely with pages that don’t have a transparent header – it makes the header cover parts of the page, in this case the breadcrumbs.

    This is the code that is the problem, but without it the transparent header doesn’t seem to work:

    @media only screen and (max-width: 768px) {
    .responsive #top #wrap_all #header { 
            position: absolute;
    }}

    So the code I use currently is:

    @media only screen and (max-width: 768px) {
    .responsive #top #wrap_all #header { 
            position: absolute;
    }}
    
    @media only screen and (max-width: 768px) {
    #top #wrap_all .av_header_transparency {
    	background: transparent;
    }}
    
    @media only screen and (max-width: 768px) { 
    .responsive #top .av_header_transparency.av_alternate_logo_active .logo a>svg {
        opacity: 0;
    }
    
    .responsive #top .av_header_transparency .logo .subtext.avia-svg-logo-sub {
        display: block;
    }
    }

    But it needs a tweak to not wreck pages without a transparent header. See private for an example – homepage transparent, other pages not but hiding the breadcrumb bar due to this issue.

    Can you supply some updated CSS please? (even better would be to have proper transparent header on mobile support in the theme options…)

    Thanks

    Tim

    #1479930

    Hey Tim,
    I’m not seeing your issue when I check your page, perhaps a screenshot would help.

    Best regards,
    Mike

    #1480008

    Hi Mike,

    Sorry, hopefully the screenshots clear this up, links in private.

    As you can see the code I flagged above hides the breadcrumbs from showing on pages that don’t have a transparent header on mobile. But without it the pages that do have a transparent header don’t have a working transparent header on mobile.

    Thanks

    Tim

    • This reply was modified 2 days, 14 hours ago by THP Studio.
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.