Hi, I’m trying to figure out how to remove the language selection flags from the menu and can’t seem to find where I can control that.
http://screencast.com/t/Lu8BvVdzeFH
Is this something that Enfold controls or the WPML plugin?
Thanks.
Hey bakbek!
Thank you for using Enfold.
Please use this on functions.php:
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 );
}
Regards,
Ismael
Hi Ismael,
I was also trying to solve this problem.
I pasted the code in the functions.php file at the end and got this:
Fatal error: Call to undefined function add_action() in /home/www/fa6629310bc5f52d9a238f9cc7a5eb7b/web/wp-includes/functions.php on line 4668
Can you help?
Thanks.
Thanks, worked great on my end.
Hi!
@emileg Please access functions.php file via FTP and undo the changes. Which version of the theme are you using?
Regards,
Yigit
I have already removed changes. Using a child theme with version 2.9.2.
I have put
.avia_wpml_language_switch li span.language_code{display: block !important;}
.avia_current_lang {
display: none;
}
in the quick css to stop from getting the flag. However, this also takes away the menu from the top of the window.
Thanks for the help.
Hi,
Here is the link: mungopark.ch
Hi
Please try using following code in Quick CSS field
div#header_main .avia_current_lang {
display: none;
}
Cheers!
Yigit
Hi,
Thanks Yigit, it seems to be working perfectly now :)
Regards,
Emile