Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1289802

    I took over a Enfold page and “play” with a test home page.:

    I use “header invisible and appears once user scrolls down.”

    That works fine on PC, but not at all on Smartphone. There header and Burger menu is visible right away and scrolls out, (not sticky).
    How can I have it behaving the same way on mobile, (with logo and burger-menu) as it does on PC?
    Thanks for your help in advanced
    Rhoody

    #1290055

    … any takers?
    I also tried the CSS suggested on another thread about sticky mobile header, but that places the header right on top of the slider.

    #1290162

    Hi Rhoody,

    The behavior is only for desktop, laptops and other larger screens but not on phones.
    It is not actually recommended to have sticky headers on mobile devices since the space is too little.
    Also, this behavior is not done via CSS but through javascript.

    Best regards,
    Nikko

    #1290242

    Nikko,
    Thanks for your reply. but i care more what the client wants. Sticky header with logo and burger menu are totally common on phones and tablets. There are plenty of threads about that topic on this board. usually with suggestions going in this direction:

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

    . … but that covers the slider or first element of the page. Any suggestions to solve that?
    other option would be at least a sticky “burger menu”

    • This reply was modified 3 years, 9 months ago by Rhoody.
    #1290711

    Hi Rhoody,

    Can you try adding this CSS code in Enfold > General Styling > Quick CSS:

    @media only screen and (max-width: 767px) {
      .responsive #top #wrap_all #header {
        position: fixed !important;
        top: 0;
      }
    
      .responsive #top #main {
        padding-top: 80px !important;
      }
    }

    Also, the mobile sticky header is on queue for development, hopefully it will be included in the next theme update :)

    Best regards,
    Nikko

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