Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1267952

    Hi. Sorry if I take your time: http://www.trikego.com I would like to try to use the fixed menu on mobile. I searched and found https://kriesi.at/documentation/enfold/header/#sticky-header-on-mobile I entered the css

    /* Sticky header on mobile */
    @media only screen and (max-width: 767px) {
    .responsive #top #main {
    /* Margin top value should be equal to header height*/
    margin-top: 180px;
    }
    .responsive #top #wrap_all #header {
    position: fixed;
    }
    }

    but the header flows with the rest: where am I wrong? I would like to try to block it, with sticky effect. Thank you very much. Loved the site, thanks Enfold. Best regards. Bruno

    #1267971

    now it works, but I can’t remove the blue space to bring the text closer and have less empty space: could you give me some advice?

    /* Sticky header on mobile */
    @media only screen and (max-width: 767px) {
    .responsive #top #main {
    /* Margin top value should be equal to header height*/
    margin-top: 0px;
    }
    .responsive #top #wrap_all #header {
    position: fixed;
    }
    }

    Schermata-2020-12-17-alle-00-23-51

    #1267973

    I solved. Best regards. Bruno

    #1267975

    Hi Bruno,

    We’re glad to hear that. :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘I can't fix header on mobile’ is closed to new replies.