Flags are automatically inserted in the Header Secondary Menu when updating enfold (2.6.3)
I don’t want to see flags and I want to see a horizontal language switcher.
so i follow this post: https://kriesi.at/support/topic/wpml-2/
but in this case i have flags in the main menu…
so i use in function.php (child theme)
add_action('avia_meta_header','add_avia_flags');
function add_avia_flags(){
do_action('icl_language_selector');
}
and in style.css to hide the flags
.avia_wpml_language_switch {
display: none;
}
here is my website : http://epsu-cj.eu/
> my question is there a solution to replace directly the flags by the horizontal language switcher in php ? (and not have to use the css code)
Hi ceubri!
WPML allows you to choose weather you want to display flags or not, In previous projects I have used the function you have described above icl_language….. to modify the behavior of this, you can find the checkbox under this What to include in the language switcher check image below.
http://cl.ly/image/3G0m29423e2S
Cheers!
David
yes i know and it’s correctly checked (only Native language name (the language name as it’s written in that language)
but if i don’t use the css .avia_wpml_language_switch {display: none;}
> it’s look like : http://imgur.com/znEIkvo
Hey!
Thank you for the update.
Yes, there is a solution to change the flag with php but it is outside the scope of support and the task is quite involved. The flag hook and css code is working properly. You might need to hire a freelance developer to modify the theme for you. Please visit Werkpress for further customization. You can also vote or post the feature on our Feature Requests page.
If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries. Thank you for your understanding.
Cheers!
Ismael
Ok i understand,
no problem.
thx !