Viewing 6 posts - 1 through 6 (of 6 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 5 days, 16 hours ago by THP Studio.
    #1480294

    Hi,
    Thank you for your patience, when I check your page /customer-car-builds/ “Vehicle Gallery” the breadcrumbs show, I assumed that you removed the css, so I tested with the css but the breadcrumbs still showed, perhaps you have already sorted it out?

    Best regards,
    Mike

    • This reply was modified 1 day, 19 hours ago by Mike. Reason: remove screenshot
    #1480295

    Hey Mike,

    Would you mind moving your screenshot into private field please?

    I’ve just checked and the CSS is still in there, and in two browsers (both logged in and logged out) I have this same issue.

    Could you try again or try on a local test site perhaps?

    Thanks

    Tim

    #1480323

    Hi,

    Thank you for the info.

    The breadcrumb container is present but is being covered by the header. Try to add this css code to adjust the top padding of the main container.

    @media only screen and (max-width: 768px) {
    
      /* Add your Mobile Styles here */
      .html_header_top.html_header_sticky #top #wrap_all #main {
        padding-top: 65px !important;
      }
    }

    View post on imgur.com

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.