Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #924212

    Hello support,

    I opened a topic a few months ago here: https://kriesi.at/support/topic/sticky-header-on-mobile-5/

    The solution you provided worked great for that particular website at the time. I am now attempting the same effect (a sticky header on mobile), however the website I am working on now has different header settings, so the same code is not working correctly (the sticky header is covering up portions of the shopping cart once “view cart” is initialized on mobile. It is also covering the top portions of other pages.

    The code you provided previously was:

    @media only screen and (max-width: 767px) {
    .html_header_top.html_header_sticky #top #wrap_all #header {
    position: fixed;
    }
    }

    By chance could you let me know which part of the CSS code needs to be altered?

    Any advice you can provide would be greatly appreciated.

    Thanks in advance!

    #924500

    Hey MLA18,

    Best regards,
    Victoria

    #924605

    Hi Victoria,

    I’m sorry, I didn’t give a better example for you to look at. Add a product to the shopping cart, then click on the shopping cart/bag icon. You will then notice the are above the coupon code area is hidden by the sticky header. This is the same on all pages…perhaps 20% of the top of each page is hidden behind the sticky header.

    #925276

    Hi,

    Actually that is happening because the search icon is getting pushed below.
    Do you mind if we make the icons, especially the cart one a bit smaller?

    Best regards,
    Basilis

    #925280

    Hi Basilis,

    I would be willing to give that a try. Although it was requested by my client that the shopping cart/bag icon be larger.

    Thanks!

    #926453

    Hi,

    Thank you for the update. You need to adjust the top padding value of the main container. Right now it is set to “0”.

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

    Resave the theme options, remove browser cache and do a hard refresh before checking the page.

    Best regards,
    Ismael

    #926890

    Thank you very much for your help! That was definitely the missing piece of the puzzle.

    You may close this thread.

    #927011

    Hi,

    Glad that Ismael helped you :) Thanks for using Enfold! Have a great day.

    Best regards,
    Nikko

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Sticky Header on Mobile (version 2.0)’ is closed to new replies.