-
AuthorPosts
-
July 11, 2017 at 12:27 pm #819263
Hi, I just updated to enfold 4.1.
Before I had the issue described here:
https://kriesi.at/support/topic/remove-wpml-flags-from-mobile-menu/In the and we endet up with this custom css:
#top #avia-menu .av-language-switch-item{ display: none; } .av-main-nav .wpml-ls-menu-item ul {width: 50px;} li.av-language-switch-item { display: none !important; }
any solution to remove the flags from the new mobile menu?
July 11, 2017 at 12:49 pm #819291Hey lewy9,
I added following code to Fuctions.php file and removed flags from mobile menu
function avia_remove_main_menu_flags(){ remove_filter( 'wp_nav_menu_items', 'avia_append_lang_flags', 9998, 2 ); remove_filter( 'avf_fallback_menu_items', 'avia_append_lang_flags', 9998, 2 ); remove_action( 'avia_meta_header', 'avia_wpml_language_switch', 10); } add_action('after_setup_theme','avia_remove_main_menu_flags');
Please review your website :)
Best regards,
YigitJuly 12, 2017 at 7:02 am #819819Thanks Yigit, that helped, but it looks like my old CSS for a custom break point is messing things up.
http://www.itsgreektomemn.com/aboutus/Had this code to set up a custom breakpoint to the Burger Menu/Toggle of 1250px and now it hides the toggle as it must be tied into the nav.main_menu wrapper instead of the #advanced_menu_toggle
@media only screen and (max-width: 1250px) { nav.main_menu {display:none !important;} #advanced_menu_toggle, #advanced_menu_hide {display:block !important;} }
I also noticed that the Burger Menu when clicked is stuck in the Full Screen setting regardless on what I change it to and I can not X out of it.
- This reply was modified 7 years, 4 months ago by millertimesites.
July 12, 2017 at 2:40 pm #820024Hi,
Please add following code to Quick CSS instead
@media only screen and (max-width: 1250px) { .av-burger-menu-main { display: block!important; } #top .av_mobile_menu_tablet .av-main-nav .menu-item { display: none!important; }}
and flush cache :)
Best regards,
YigitJuly 14, 2017 at 10:05 am #821067This reply has been marked as private.July 14, 2017 at 2:10 pm #821158Hi,
Selectors has not changed in Enfold 4.1.1 and code is still working fine on my end.
I may have misunderstood you. Could you please elaborate?Best regards,
YigitJuly 17, 2017 at 8:18 am #822370This reply has been marked as private.July 17, 2017 at 11:43 am #822521Hi,
Please go to Appearance > Editor and add following code to Functions.php file
function avia_remove_main_menu_flags(){ remove_filter( 'wp_nav_menu_items', 'avia_append_lang_flags', 9998, 2 ); remove_filter( 'avf_fallback_menu_items', 'avia_append_lang_flags', 9998, 2 ); remove_action( 'avia_meta_header', 'avia_wpml_language_switch', 10); } add_action('after_setup_theme','avia_remove_main_menu_flags');
However, i cannot see the flags in menus at the moment. Have you figured it out already?
Best regards,
Yigit -
AuthorPosts
- You must be logged in to reply to this topic.