Tagged: mobile menu, WPML Flags
Hello,
I am developing an website but I’ve noticed that the menu doesn’t display as a hamburgermenu on iPad. Therefore it runs into the logo.
Also on iPad and mobile the WPML language switch flags are visible in the header. I don’t want that. Ecpecially on mobile it overflows the logo. It would be nice if it is possible when you click on the hamburger menu the flags are shown. I don’t know if this is possible?
The URL of the website I am developing is: https://www.zibo.remarkabletest.nl
Can you help me?
Sanne
Hi Sanne,
Please try the following in Quick CSS under Enfold->General Styling:
@media only screen and (max-width: 1024px) {
nav.main_menu {
display: block !important;
}
#avia-menu .menu-item {
display: none;
}
.av-burger-menu-main.menu-item-avia-special {
display: block;
}
}
Best regards,
Rikard
Hi Rikard,
Thank you for replying and the CSS code. I’va added this to the Quick CSS and it works great for the hamburger menu. :)
The other thing I am struggling with is that the WPML lang switch flags are running into the logo on the mobile version (see screenshot at: https://www.zibo.remarkabletest.nl/wp-content/uploads/2019/07/Screenshot_20190709_103442_com.android.chrome.jpg).
Do you know how to fix this?
Best regards,
Sanne
Hi,
Thank you for the update.
You can get around that issue by decreasing the size of the logo and adjusting the padding between the language switcher.
@media only screen and (max-width:767px) {
.responsive .logo img {
max-height: 40px !important;
}
.responsive #top #header_main > .container .main_menu .av-main-nav > li > a {
padding: 0 0 0 13px;
}
}
Let us know if that helps.
Best regards,
Ismael
Hi Ismael,
Thank you for the code. It worked.
I’ve tweaked the code a little bit. Set the max-height to 30px.
Thank you!
Best regards,
Sanne
Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon