-
AuthorPosts
-
October 28, 2014 at 2:11 pm #342206
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);
}
*/October 28, 2014 at 2:46 pm #342233Hi 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,
YigitOctober 28, 2014 at 3:37 pm #342258Hi,
I added it in style.css, but nothing changes
Best regards!
October 30, 2014 at 3:05 am #343201Hi!
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!
YigitOctober 30, 2014 at 10:29 am #343309Hi
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
October 30, 2014 at 1:35 pm #343385Hi!
Please review your website.
I mean the code i posted was inside/* comment */so it was not working.
Regards,
YigitOctober 30, 2014 at 2:33 pm #343413Thank 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
October 30, 2014 at 7:57 pm #343609 -
AuthorPosts
- The topic ‘Disable flag from WPML in header’ is closed to new replies.
