Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #180400

    I bought Enfold, installed WPML
    Flags are automatically inserted in the header.

    I don’t want to see flags and I want to see a scroll down menu.
    with the inactive language showing.

    Thanks
    Luc

    #180577

    Hi ELEM!

    You can deactivate the flags with this code

    
    add_action('after_setup_theme','remove_avia_flags');
    function remove_avia_flags(){
    remove_action( 'avia_meta_header', 'avia_wpml_language_switch' );
    }
    

    insert the code into the enfold/functions.php file. If you want to display the default language switcher you can use following code

    
    add_action('after_setup_theme','remove_avia_flags');
    function remove_avia_flags(){
    remove_action( 'avia_meta_header', 'avia_wpml_language_switch' );
    }
    
    add_action('avia_meta_header','add_avia_flags');
    function add_avia_flags(){
    do_action('icl_language_selector'); 
    }
    

    Cheers!
    Peter

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘wpml’ is closed to new replies.