-
AuthorPosts
-
March 19, 2020 at 8:36 pm #1194574
Hi Team!
I am trying to get rid of the default language switcher in Enfold and replace it with a dropdown integrated in WPML.
I use the child theme and tried all suggestions on here such as:
Adding below to custom.css of child and quick css in General Styling.avia_wpml_language_switch_extra { display: none; }Adding something else into quick css:
#top .sub_menu>ul, #top .sub_menu>ul>li { display: none;}Adding below to the functions.php of the child:
add_action('after_setup_theme','avia_remove_main_menu_flags'); function avia_remove_main_menu_flags(){ remove_filter( 'wp_nav_menu_items', 'avia_append_lang_flags', 20, 2 ); remove_filter( 'avf_fallback_menu_items', 'avia_append_lang_flags', 20, 2 ); remove_action( 'avia_meta_header', 'avia_wpml_language_switch', 10); }I also disabled the merging of css and javascript, just to be sure and deleted old css.
Nothing seems to make the menu go away?
Thank you!
MattMarch 20, 2020 at 7:26 pm #1194875Hey sftsengineering,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaMarch 20, 2020 at 8:12 pm #1194913Sure!
No problem at all. Details in the box :)
thank you and have a nice weekend
MattMarch 24, 2020 at 7:40 am #1195668Hi Matt,
I have added this CSS code in your Quick CSS (both in English and German):
#top #header #header_main .av-language-switch-item { display: none; }Let us know if you need further assistance.
Best regards,
NikkoMarch 24, 2020 at 10:30 am #1195981Thank you NIkko,
that works like a charm.
I moved it to the style.css however.
Best regards
MattMarch 24, 2020 at 1:35 pm #1196369Hi Matt,
Sure, that won’t have any issues if moved there :)
We’re glad that we could help :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘WPML Language Switcher Replacement’ is closed to new replies.
