Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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.
    #696348

    Hey 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,
    Vinay

    #696354

    Hi 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
    Francesco

    #697073

    Hi,

    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,
    Vinay

    #697196

    Hi Vinay,
    perfect thanks!

    You can close this thread

    Cheers
    Francesco

    #697625

    Hi,

    Great, glad we could help :-)

    Please open a new thread if you should have any further questions or problems.

    Thanks,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Language Code in Mobile menu’ is closed to new replies.