Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
    Posts
  • #624264

    is there any way to tweak the full width submenu to display as a single row, and users can scroll to the left and or right to access other options instead of a chunk of text or a hidden menu? If you access google.com or apple.com on a smart phone, you’ll notice that on google.com, the menu on the bottom, allows you to scroll to the left to access more options. I find that this is a much more elegant way to present the submenu, as compared to the two options available with the stock template.

    #624430

    Hey vin8tan!

    Can you please post the link to your page?
    Also, you can request such feature here – https://kriesi.at/support/enfold-feature-requests/

    Best regards,
    Yigit

    #626197

    http://www.gayhealth.sg/plu/

    At the page above, you’ll see a full width submenu under the banner.
    I’d very much like this menu to simply remain as one row of text, where users can scroll, instead of breaking into three rows, which takes up too much space.

    #627097

    Hi,

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    ul#menu-plu {
        width: 560px;
        overflow-x: scroll;
        overflow-y: hidden;
        white-space: nowrap;
    }

    Best regards,
    Yigit

    #627588

    thank you, although that didn’t quite work, but i tweaked it and now it works.

    ul#menu-plu {
      white-space: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      -ms-overflow-style: -ms-autohiding-scrollbar; }

    Now, i’d like all my full-width submenu to do this, how do i go about this?

    #627781

    Hi!

    It does do it on my end. Please add media queries to apply changes only on mobile

    @media only screen and (max-width: 580px) {
    ul#menu-plu {
      white-space: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      -ms-overflow-style: -ms-autohiding-scrollbar; 
    }}

    Best regards,
    Yigit

    #628048

    Hi Yigit,

    thank you very much. will this work for all submenu on other pages too?

    #628271

    Hey!

    No, to apply to them all, please change the code to following one

    @media only screen and (max-width: 580px) {
    .av-submenu-container ul {
      white-space: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      -ms-overflow-style: -ms-autohiding-scrollbar; 
    }}

    Cheers!
    Yigit

    #639873

    Hey, we’ve finally launched our new site, and all is working great. Thank you very much. I just noticed that the submenu is sticky to the top on my desktop but not in mobile. Is there a way to activate that?

    #639900

    Hi,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:

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

    Best regards,
    Vinay

    #639918

    Hi Vinay,

    thank you, but it doesn’t seem to work.

    could it be conflicting with my other css for sub menu?
    here’s all the css currently active on my site

    @media only screen and (max-width: 580px) {
    .av-submenu-container ul {
      white-space: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      -ms-overflow-style: -ms-autohiding-scrollbar; 
    }}
    
    ::-webkit-scrollbar { 
        display: none; 
    }
    
    @media only screen and (max-width: 767px) {
    .responsive #top #wrap_all #header {
        position: fixed!important;
    }}
    #639956

    Hi,

    The site looks sticky on mobile to me. You may not see the changes until the cached files are cleared in your browser.

    Please try to hard refresh by pressing Ctrl + Shift + F5 on your browser or press the F12 key to open chrome dev tools and right click on the refresh button and select “Empty Cache and Hard Reload” and review the site again.

    Best regards,
    Vinay

    #643926

    I know where the error is.
    I’m referring to the submenu i.e on gayhealth.sg/plu and not the header.
    How can we make the submenu sticky instead?

    While it’s nice that the header is now sticky, it overlaps some of my layerslider, it’s very strange, because it only affects the layerslider on the home page, while all the settings, and layout are the same for pages with layersliders.

    #644833

    Hi,

    I checked your website, but can’t see any issues. Can you highlight using screenshots please? to make it clear to us? use imgur.com or dropbox.

    Best regards,
    Andy

    #645219

    Hi, you need to access the website via a real mobile browser, and now not scaling down your desktop browser.

    The fullwidth submenu is not sticky on mobile phones.

    #646060

    Hi,

    The fullwidth submenu is not sticky on mobile phones.

    That is the default behaviour of the full width submenu because “fixed” positioned elements are not handled consistently on mobile devices. If you want to make it scrollable, add this in the Quick CSS field:

    @media only screen and (max-width: 767px) {
    #top .av-submenu-container ul {
         white-space: nowrap;
         overflow-x: auto;
    }
    }

    Remove this css code:

    @media only screen and (max-width: 480px)
    @media only screen and (max-width: 580px)
    .av-submenu-container ul {
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        position: fixed!important;
    }

    It’s a bit counter intuitive though because there is no indicator that it is scrollable. Please enable the button in the “Mobile Menu Display” settings.

    Best regards,
    Ismael

    #646109

    Hi, thank you very much for your reply, but that’s not what i’m trying to fix.

    The scroll and over flow is fixed, but now i need the submenu to be sticky, like the header. The scroll is incredibly intuitive when you’re browsing the site from an actual mobile device, and we haven’t heard any negative feedback from our users. Apple and Google all implement this scroll-able, overflow menu. The current solution provided by Kriesi, is counter intuitive, and having two hamburger menu on the site, makes it confusing and unsightly.

    Again, what i’m trying to fix is to get the submenu to stick to the top of the screen when users scroll through the page.

    #647756

    Hi,

    Again, what i’m trying to fix is to get the submenu to stick to the top of the screen when users scroll through the page.

    Fixed or sticky elements are not fully supported on mobile devices and the script that enables this on desktop view is not going to work properly on touch devices. Unfortunately, we won’t be able to help you with this. Please hire a freelance developer or contact codeable: http://kriesi.at/contact

    If you want to test it, edit the css > shortcodes.css file, look for this css code around line 4405 then remove it:

    .responsive #top .av-submenu-container{top: auto !important; position: relative !important; height:auto; }
    

    This will enable the sticky submenu on mobile but there will be an issue with its position.

    Best regards,
    Ismael

    #780406

    Hi Guys,

    I’ve implemented the above quick css, works like a charm. However I want people to notify that the fullwidth submenu on mobile is scrollable. This is probably not clear when they see it at first. Is it possible to add an pointer/small arrow on the left side of the screen/fullwidth submenu and the right side of the screen/fullwidth submenu so people understand that they can scroll through it?

    Thanks in advance!

    Regards freek

    #782180

    Hi,

    Please add this in the Quick CSS field.

    #top .av-submenu-container:before {
        content: "";
        font-family: entypo-fontello;
        position: absolute;
        top: 30%;
        left: 5%;
    }
    
    #top .av-submenu-container:after {
        content: "";
        font-family: entypo-fontello;
        position: absolute;
        top: 30%;
        right: 5%;
    }

    Best regards,
    Ismael

    #782321

    Hi Ismael,

    Thanks for your reply! Almost working, I’ve got the two small arrows, however they are pointing to the same direction (to the left). I want the one on the right side to point to the right.

    In the above code I only see a square: 

    So I can’t figure it out by myself.

    Thanks again!

    Best regards,

    Freek

    #783264

    Hey!

    We modified the code above. Please try it again.

    Best regards,
    Ismael

    #1144943

    Dear All,

    I also created a full with submenu on my site. Only two menus but on mobile it is on two rows. How can I arrange/force the menu in just one row on mobile devices and also make it sticky?

    Thanks in advance.

    #1145580

    Hi,


    @darnott75
    : The site returns a 504 gateway time out error. You should contact your hosting provider regarding the status of the site. For additional help, please kindly open your own thread.

    Best regards,
    Ismael

Viewing 24 posts - 1 through 24 (of 24 total)
  • The topic ‘Mobile Full width submenu with overflow and scroll’ is closed to new replies.