Tagged: 

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #880148

    Hello,

    I want to have a sticky header + sticky breadcrumb bar on all screen sizes.
    So far I’ve tried several codes from the forum but the problem is that it always overlays the visibility of the top slider.

    This is what i’ve used:
    /**MOBIL STICKY HEADER**/
    .html_header_top.html_header_sticky #header {
    position: fixed !important;
    }
    @media only screen and (max-width: 767px) {
    .responsive #main {
    padding-top: 0px !important;
    }
    }

    /** BREADCRUMB STICKY **/
    .title_container {
    position: fixed;
    width: 100%;
    z-index: 99;
    }
    @media only screen and (max-width: 767px){
    .responsive #top #main .container_wrap:first-child {
    border-top: none;
    margin-top: 80px;
    }
    }

    Can you help me with that – adjusting the code or posting a clean new one?
    It’s important that the top sliders are 100% visible and not overlayed by the sticky header + breadcrumb, mobile & desktop!

    Thanks in advance,
    Timo

    #881122

    Hey Timo,

    You can use the code above and add this

    
    #main {
      padding-top: 90px !important;
    }
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #881136

    Hi Victoria,
    thanks for your advice.
    This is how i added the code – unfortunately it didn’t fix the problem. The sticky header and sticky breadcrumg are still overlaying title and slider area on top of the page…

    An other suggestions?
    Thanks a lot for your help!
    Best, Timo

    /**MOBIL STICKY HEADER**/
    .html_header_top.html_header_sticky #header {
    position: fixed !important;
    }
    @media only screen and (max-width: 767px) {
    .responsive #main {
    padding-top: 0px !important;
    }
    }

    /** BREADCRUMB STICKY **/
    .title_container {
    position: fixed;
    width: 100%;
    z-index: 99;
    }
    @media only screen and (max-width: 767px){
    .responsive #top #main .container_wrap:first-child {
    border-top: none;
    margin-top: 80px;
    }
    }
    #main {
    padding-top: 90px !important;
    }

    #881449

    Hi,
    Do you have any other custom css that may be formatted wrong? If so it could be preventing the suggested css from running.

    Best regards,
    Jordan Shannon

    #882972

    Hi Jordan,

    there is a bunch of other css code in there but nothing really adressing the header…so i dont know exactly where the problem is.

    The only thing i’ve added in the header area is this code:
    /*** HEAD ***/
    .logo{width:190px;}
    .logo a img {margin-top:15px;}

    /*** LOGO ADJUST ***/
    @media only screen and (max-width: 1070px) {
    .responsive #top .av_mobile_menu_tablet .av-main-nav .menu-item-avia-special {
    display: block !important;
    }
    .responsive #top .av_mobile_menu_tablet .av-main-nav .menu-item {
    display: none;
    }
    .responsive #top .av_mobile_menu_tablet .av-main-nav .menu-item-avia-special a { border: none !important; }
    }

    /*** LOGO ADJUST SUPPORT ***/
    @media only screen and (max-width:635px) and (min-width: 480px) {
    .logo img {
    max-width: 30%!important;
    }}

    How do i proceed the best way? Because your solution isnt working so far.
    I really need to get the header und breadcrumb sticky, both mobile and desktop, without overlaying any top page content.

    Thanks a lot for your help
    Timo

    #883234

    Hi,

    Please provide admin info so we can log in and look into this issue further.

    Best regards,
    Jordan Shannon

    #883338

    Hi Jordan,

    i put the login credentials in the private content box above.
    Thanks for your help in advance.

    Best regards
    Timo

    #883599

    Hi,
    Okay, if I could suggest to remove/comment out your custom css and leave only the concerning the header and what Victoria added on. Try this and see if it runs. Also be sure that you’re hard clearing your cache each time.

    Best regards,
    Jordan Shannon

    #911176

    Hi Jordan,

    i have tried Victorias Code from above and removed all of ours before.
    Unfortunately i am still confronted with the same issue: As soon as header and breacrumb bar both get sticky, they are overlapping the Easy Slider at top of every page. As desktop view the easy slider is still partially visible. On mobile devices, the slider is entirely overlapped by menu bar und breadcrumb bar.

    Do you have any suggestion how to fix this problem?
    Really urgent!

    Thanks again,
    Timo

    #911183

    Hi,

    Perhaps if you can add a screenshot so we can all have a clearer idea of what you are seeing on your end it can help speed things up a bit. Apologies for the delay.

    Best regards,
    Jordan Shannon

    #911349

    Hi Jordan,
    i have just put in the code for sticky header and sticky breadcrumb, both mobile and desktop, referring to the code posted on 24th of November.

    This is what you get:
    desktop: Desktop
    mobile_1: Mobile_1
    mobile_2: Mobile_2

    Problem:
    The code effects an overlapping of the easy slider by the sticky breadcrumb/header code. Without code there is a clean 100% visible slider but therefor no sticky breadcrumb:

    Do the screenshots help you for now?

    Thanks a lot for your help.
    Best, Timo

    #911350
    #912007

    Hi,

    Thank you for the update.

    Please turn on the custom css class field, then add a unique css class name to the slider (ex. custom-slider). You can then apply a margin above the slider using the following css code.

    .custom-slider {
        margin-top: 50px;
    }

    To learn more about the custom css field, please refer to the following documentation.

    // https://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/

    Best regards,
    Ismael

    #1416234

    Good day,

    I used this code, but in the mobile view the header no longer reduces and the breadcrumbs are no longer pinned to the top but have a gap when scrolling. Is there also a solution for this?
    Thank you, Matthias

    #1416319

    Hi,

    Instead of increasing the margin above the slider, try to adjust its top padding in order to create more space between the slider and the breadcrumb container.

    @media only screen and (max-width: 989px) {
        #content-top {
            padding-top: 100px;
        }
    }
    

    Please make sure to toggle or temporarily disable the Enfold > Performance > File Compression settings in order to ensure that the changes take effect.

    If you need further assistance, please feel free to open a different thread. We will close this one for now.

    Best regards,
    Ismael

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Sticky Header & Sticky Breadcrumb – Mobile & Desktop’ is closed to new replies.