-
AuthorPosts
-
October 6, 2016 at 3:26 pm #696069
Hi all,
i would like to remove flags in the mobile menu and i want to have country code like home page. The languages in mobile menu are also on two rows, there is a way to have it on the same row ?i have this code in my functions.php
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('after_setup_theme','avia_remove_main_menu_flags'); add_action('avia_meta_header', 'add_custom_content_to_header'); function add_custom_content_to_header() { do_action('icl_language_selector'); }
Thanks in advance
- This topic was modified 8 years, 2 months ago by cocco.
October 7, 2016 at 8:49 am #696348Hey cocco,
Sorry it’s not clear what you want to do but to remove the flags in mobile menu Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:
#mobile-advanced .av-language-switch-item{ display:none; }
Best regards,
VinayOctober 7, 2016 at 9:27 am #696354Hi Vinay, thanks for reply,
i would like to have, in mobile menu, the language switcher in text format (ENG I ITA) instead of flags.i use latest versions of enfold and wpml.
cheers
FrancescoOctober 9, 2016 at 4:33 pm #697073Hi,
Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:
@media only screen and (max-width:768px) { .av-language-switch-item{ min-height:40px!important; } .language_en a:before { content: "English"!important; font-size:16px!important; } .language_flag { display: none; } .language_it a:before { content: "Italian"!important; font-size:16px!important; } .language_it a, .language_en a{ min-height: 48px!important; } }
Best regards,
VinayOctober 10, 2016 at 9:21 am #697196Hi Vinay,
perfect thanks!You can close this thread
Cheers
FrancescoOctober 11, 2016 at 6:03 am #697625 -
AuthorPosts
- The topic ‘Language Code in Mobile menu’ is closed to new replies.