Tagged: full-width submenu, ismael
-
AuthorPosts
-
April 29, 2016 at 11:31 am #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.
April 29, 2016 at 2:02 pm #624430Hey 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,
YigitMay 3, 2016 at 6:10 am #626197At 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.May 4, 2016 at 11:37 am #627097Hi,
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,
YigitMay 5, 2016 at 4:44 am #627588thank 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?
May 5, 2016 at 1:06 pm #627781Hi!
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,
YigitMay 6, 2016 at 3:03 am #628048Hi Yigit,
thank you very much. will this work for all submenu on other pages too?
May 6, 2016 at 1:36 pm #628271Hey!
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!
YigitMay 28, 2016 at 11:34 pm #639873Hey, 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?
May 29, 2016 at 6:53 am #639900Hi,
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,
VinayMay 29, 2016 at 9:25 am #639918Hi 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; }}
May 29, 2016 at 12:09 pm #639956Hi,
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,
VinayJune 7, 2016 at 10:14 am #643926I 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.
June 8, 2016 at 2:16 pm #644833Hi,
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,
AndyJune 9, 2016 at 5:25 am #645219Hi, 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.
June 10, 2016 at 7:18 am #646060Hi,
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,
IsmaelJune 10, 2016 at 9:29 am #646109Hi, 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.
June 14, 2016 at 4:48 am #647756Hi,
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,
IsmaelApril 20, 2017 at 10:01 am #780406Hi 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
April 24, 2017 at 7:49 am #782180Hi,
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,
IsmaelApril 24, 2017 at 2:34 pm #782321Hi 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
April 26, 2017 at 6:55 am #783264October 4, 2019 at 11:55 am #1144943Dear 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.
October 7, 2019 at 2:11 am #1145580Hi,
@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 -
AuthorPosts
- The topic ‘Mobile Full width submenu with overflow and scroll’ is closed to new replies.