-
AuthorPosts
-
May 10, 2017 at 1:05 pm #791052
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
May 10, 2017 at 2:06 pm #791086Hey 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,
RikardMay 10, 2017 at 2:32 pm #791107Tried it and it still shows all the flags.
May 10, 2017 at 2:47 pm #791116Hi,
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,
YigitMay 10, 2017 at 3:18 pm #791143Doesn’t work at all unfortunately :(
May 10, 2017 at 3:27 pm #791151Hi,
Login credentials are not working for me. Can you please check them once again? :)
Best regards,
YigitMay 10, 2017 at 3:35 pm #791156Here:
May 10, 2017 at 3:50 pm #791164Hi,
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,
YigitMay 10, 2017 at 3:56 pm #791170Perfect! It is working now. Thanks a lot for your effort!
Have a great day.
CheersMay 10, 2017 at 3:58 pm #791171Hi,
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 -
AuthorPosts
- The topic ‘Remove wpml flags from mobile menu’ is closed to new replies.
