Tagged: flags, mobile menu
-
AuthorPosts
-
October 11, 2017 at 10:26 pm #863035
Hello, how I can remove WPML flags from mobile menu?
https://ambcons.com/enI want languages displayed only as LV RU EN without flags
Screenshot – https://prnt.sc/gw8gqhThank you very much!
October 11, 2017 at 11:17 pm #863057Hey vadikcoma,
Add the following to quick css:
@media only screen and (max-width: 767px) { .language_flag{ display:none!important; }}
Best regards,
Jordan ShannonOctober 11, 2017 at 11:33 pm #863069October 13, 2017 at 7:11 am #863749Hi,
Thanks for the feedback, please try this instead:
@media only screen and (max-width: 767px) { .language_flag { display:none!important; } .language_flag < a { border:none!important; } }
Best regards,
RikardOctober 13, 2017 at 12:28 pm #863893Hi Rikard, I’m still getting lines on mobile menu. You can see here – https://ambcons.com/
October 13, 2017 at 7:03 pm #864093Hi,
Adjust the css to the following:
@media only screen and (max-width: 767px) { #av-burger-menu-ul .av-active-burger-items:nth-child(6) { display:none; } #av-burger-menu-ul .av-active-burger-items:nth-child(7) { display:none; } #av-burger-menu-ul .av-active-burger-items:nth-child(8) { display:none; } }
Best regards,
Jordan ShannonOctober 13, 2017 at 9:33 pm #864158Hi Jordan, now there is an visual “effect” to flags :-)
October 13, 2017 at 9:54 pm #864160Hi,
This should be added in addition to the css I gave earlier. Sorry for being unclear. That should fix that effect.
Best regards,
Jordan ShannonOctober 13, 2017 at 9:57 pm #864161Thanks Jordan,
currently flags are gone, but lines are still disappearing with same effect – https://ambcons.com/
October 13, 2017 at 10:15 pm #864167Hi,
Hmmm, I’m guessing it’s because the menu doesn’t load the css until the menu is open. Try the css below (keep the flag css as well)
@media only screen and (max-width: 767px) { #av-burger-menu-ul li:nth-child(6) { display:none; } #av-burger-menu-ul li:nth-child(7) { display:none; } #av-burger-menu-ul li:nth-child(8) { display:none; } }
Best regards,
Jordan ShannonOctober 14, 2017 at 7:26 pm #864319yes, now it seems to work!
Thank you!
October 14, 2017 at 7:31 pm #864322 -
AuthorPosts
- The topic ‘Remove flags from mobile menu’ is closed to new replies.