Hi,
I can’t disable the flags from the header. They appear at the top, left by the phone. I don’t want to show them because I have the languages in the main menu.
I put in function.php, but they still shows
<?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 );
remove_filter( ‘avf_fallback_menu_items’, ‘avia_append_lang_flags’, 20, 2 );
remove_action( ‘avia_meta_header’, ‘avia_wpml_language_switch’, 10);
add_action(‘avia_after_footer_columns’, ‘avia_wpml_language_switch’, 10);
}
*/
Hi itziarsolla!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
#header_meta ul.avia_wpml_language_switch {
display: none;
}
Best regards,
Yigit
Hi,
I added it in style.css, but nothing changes
Best regards!
Hi!
I have added the code to Quick CSS field and flags are removed. I saw that you have added the code to style.css file of your child theme but it is currently commented out.
Cheers!
Yigit
Hi
They still appear when you slect the catalan language.
And I am sorry, but I am from Spain and I don’t understand “it is currently commented out”, what do you mean?
Thanks!
Itziar
Hi!
Please review your website.
I mean the code i posted was inside
/* comment */
so it was not working.
Regards,
Yigit
Thank you for solving it
Sorry but I’m new in wordpress and I don’t usually talk in english.
Next time I use this theme I will do the same if I don’t want to show the flags.
Regards,
Itziar