Tagged: mobile menu
Hi there,
What’s the code for ensuring that when the site loads the mobile menu that it is set to a maximum of “X” for fixed width, rather than filling the whole page?
Hey Chris,
Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:
#mobile-advanced {
max-width: 360px!important;
}
Best regards,
Vinay
Tried that, although to test on my desktop it puts the menu over to the right and I cannot see it at all…
Hi,
Try the following instead:
@media only screen and (max-width:767px) {
#mobile-advanced {
max-width: 360px!important;
}
}
Should only work on mobile devices.
Best regards,
Jordan
Here’s the code we currently have:
@media only screen and (max-width: 1145px) { nav.main_menu {display:none !important;} #advanced_menu_toggle, #advanced_menu_hide {display:block !important;} }
#mobile-advanced {
max-width: 360px!important;
}
The reason is so that our menu doesn’t shrink and go over top of media elements when on a desktop or iPad.
With this code now, the mobile menu is not usable on iPad, but works on mobile.
Hi,
Thanks for getting back to us.
I understand the issue. Could you please provide login details to your WordPress dashboard and we will have a closer look to give you a code that better fits what you want to achieve.
Best regards,
Jordan
I removed the mobile code as it wasn’t working.