Viewing 30 posts - 1 through 30 (of 30 total)
  • Author
    Posts
  • #734608

    Hi, is it possible to activate a stycky menu for smartphone version? Thank you very much

    #735728

    Hey publidata,

    Yes, it’s possible with some custom css codes you need to add on Quick CSS (located in Enfold > General Styling):

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

    You might need to adjust the padding-top value. Let us know if this helps :)

    Best regards,
    Nikko

    #736335

    Hi, first of all thank you very much.

    it is ok, but is it possibile to see on mobile just the row with the logo and the menu (without top header)?

    In this way it take too much space in the page on smartphone.

    I would like that on mobile appears top header and the row with logo and menu, but when scrolling just the row with logo and menu for a better usability of the website.

    I’ll wait your answer. Thank you.

    Regards

    #737562

    Hi!

    Please add this css code inside the css media query.

    #header_meta {
        display: none;
    }

    Regards,
    Ismael

    #737626

    where can I find css media query?

    #738090

    Hi,

    The media query is what is wrapping the code here, first and last row. Try this instead:

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

    Best regards,
    Rikard

    #738217

    ok, thank you, but where to add this code? In Enfold > General Styling? Thank you

    #738257

    Hey!

    Yes, you can add it to the Custom CSS field to make it work.
    Thank you

    Best regards,
    Basilis

    #738266

    it seems to be ok
    thank you very much
    best regards

    #738722

    Hi,

    Great, glad you got it working :-)

    Please let us know if you should need any further help on the topic.

    Best regards,
    Rikard

    #741110

    Hi, the website has been published. You can find it to http://www.agriturismoeucaliptus.com

    As you can see in the mobile version I don’t see the menu with social icons, telephone number and flags of the languages, but just the sticky menu.

    I would like to see the sticky menu only when the user scroll, for a better usability via mobile.

    Is it possible? Thank you very much

    #742736

    Hi,

    Try adding this css code in Quick CSS:

    .responsive #top #wrap_all #header {
        position: fixed !important;
    }

    Hope this helps.

    Best regards,
    Nikko

    #763635

    Hi Guys,

    I don’t want to open new topic because my issue is the same: sticky header on menu.
    I tried with codes from this topic and from topics:

    but it doesn’t work (or I can’t see it on Safari).
    There is link to my website (prv content).

    Would appreciate some help :)

    #765645

    Hi andrzejkozdeba,

    Try adding this css to you enfold/custom.css or in Quick css:

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

    Let us know if this was helpful.
    Best regards,
    Victoria

    #765669

    Dear Victoria,
    It works on tablet (I checked Chrome and Safari on iOS) but it doesn’t work on smartphones (i checked on Android and on iOS)

    Could you tell me also how can I activate it on smartphones also?

    Best regards,
    Andrzej

    #765918

    Hi,

    Sometimes, another rule may be replacing this rule, so, try to use the !important after the rule, like this:

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

    Best regards,
    John Torvik

    #766000

    Dear John,
    Unfirtunatelly this rule also works only on tablets and do not work on smartphones.
    :(

    #766751

    Hi andrzejkozdeba,

    Try this css:

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

    Let us know if this was helpful.
    Best regards,
    Victoria

    #766940

    Dear Victoria,
    Still the same: this rule also works only on tablets and do not work on smartphones.
    :(

    #767210

    Hi,

    This part of the code that John and Victoria gave should work only on mobile devices but won’t have any effect on tablets, can you please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    Login credentials include:

    • The URL to the login screen.
    • A valid username (with full administration capabilities).
    • As well as a password for that username.
    • permission to deactivate plugins if necessary.

    Best regards,
    Nikko

    #767279

    OK, thanks.

    #767522

    Hi andrzejkozdeba,

    I advise you to put the css not in Quick Css but in theme/enfold/css/custom.css, when code is added there it will work.

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

    Let me know if it worked.

    Best regards,
    Victoria

    #767540

    It works!

    Thank you so much <3!

    #768105

    Hi andrzejkozdeba,

    Glad we could help! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #836093

    Hi Guys,
    I have a follow up question related to this subject that I can’t seem to find an answer for anywhere else…

    I have applied the suggested code above for my header, and it works but would like to know how to apply this to a sub-menu on mobile as well? I have tried different variances, but nothing seems to work….

    Thanks in advance,

    #837949

    Hi 3adconsulting,

    I am not sure I understand. Could you please attach a mockup of what you’re trying to achieve? And a link to your website?

    Best regards,
    Victoria

    #838840

    Hi Victoria,

    My apologies for not being clearer. The website is http://www.cre8vitality.com, when it is viewed on a mobile screen only the header menu stays fixed at the top of the page when a user scrolls down. But due to the amount of information on my product pages I would like the submenu to stay fixed to the top of the page as well (below the header menu) when the user scrolls down. Like it currently does when viewed on desktop screen sizes….. https://www.cre8vitality.com/product/multiflora25/

    Here are some screenshots when viewed on a desktop:
    Screenshot - desktop1
    Screenshot - desktop2

    Here it is when viewed on a smaller screen:
    Screenshot - smaller screen1
    Screenshot - smaller screen2

    Here are the settings selected for the submenu:
    Screenshot - submenu settings

    Thank you in advance for your help with this,

    Kind regards,

    #840236

    Hi,

    Thank you for using Enfold.

    Please add this code in the Quick CSS field.

    @media only screen and (max-width: 767px) {
        .responsive #top .header-scrolled-full + #main .av-submenu-container {
            top: 81px !important;
            position: fixed !important;
            height: auto;
            min-height: 0;
            margin-bottom: -1px;
         }
    }
    

    The top value depends on the height of the mobile header. Also, you might want to limit the number of sub menu element to one per page.

    Best regards,
    Ismael

    #842149

    Hi Ismael,
    Thanks so much for your help! This is great and greatly appreciated! :)

    #842358

    Hi,

    Great. Let us know if you need anything else.

    Best regards,
    Ismael

Viewing 30 posts - 1 through 30 (of 30 total)
  • The topic ‘sticky mobile menu’ is closed to new replies.