Hey,
I would like to remove the flags from the mobile menu on my website. I tried it with this quick css I’ve found in another support topic but it didn’t worked for me.
https://kriesi.at/support/topic/wpml-remove-flags-from-mobile-version/
ul.avia_wpml_language_switch {display: none!important;}
any other solution?
Thanks in advance
Hey lewy9,
Please try the following in Quick CSS under Enfold->General Styling:
@media only screen and (max-width: 767px) {
#header .wpml-ls-menu-item {
display:none !important;
}
}
Best regards,
Rikard
Tried it and it still shows all the flags.
Hi,
Please add following code to Functions.php file in Appearance > Editor
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');
Best regards,
Yigit
Doesn’t work at all unfortunately :(
Hi,
Login credentials are not working for me. Can you please check them once again? :)
Best regards,
Yigit
Here:
Hi,
I added following code to bottom of Quick CSS field in Enfold theme options > General Styling on all languages
li.av-language-switch-item {
display: none !important;
}
Please flush browser cache a few times and review your website
Best regards,
Yigit
Perfect! It is working now. Thanks a lot for your effort!
Have a great day.
Cheers
Hi,
You are welcome! :)
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)
Best regards,
Yigit