Single Widget Width Mobile Issue
-
I am having an issue when the menu is viewed on a mobile device. I cannot get the width of a single widget to fill the menu width.
I’ve tried setting up a single column or dual column set up with the widget set to fill the available number of columns. It works great on the desktop view but the mobile view always defuslts to one column and only takes up about half of the available space.
Site: http://justcope.co
Example: the search menu option (search icon). It shows the search bar across the entire menu on desktop but only shows a very small search area on mobile. It’s not the code specific to the widget or the search box as it happens with all widgets.
-
Hi JCLLC,
It’s possible with some custom CSS. Please head to Appearance > Max Mega Menu > Theme Editor and select your menu theme.
At the bottom of the page is an area to insert custom CSS – add this on a new line:
@media only screen and (max-width : $responsive_breakpoint) { #{$menu} #{$menu} > li.mega-menu-megamenu > ul.mega-sub-menu > li { width: 100% !important; clear: both; } }Regards,
TomTom,
Very impressive turn around time. Thank you! Heading over to leave a 5 Star Review.
Wanted to share this incase anyone else has the same challenge. I adapted the code slightly so it was isolated to only the widget having an issue, otherwise it made all elements (not just widgets) 100% which prevented any side by side.
@media only screen and (max-width: $responsive_breakpoint) { #{$wrap} #{$menu} > li.mega-menu-megamenu > ul.mega-sub-menu > li#mega-menu-item-wgs_widget-2 { width: 100% !important; clear: both; } }Thanks again for your super fast support.
Slight update to this, the CSS is now:
@media only screen and (max-width : $responsive_breakpoint) { #{$menu} #{$menu} > li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-item { width: 100% !important; clear: both; } }Regards
Tom
The topic ‘Single Widget Width Mobile Issue’ is closed to new replies.