Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #531596

    Hey guys,
    I wanted to change the wpml language selector to language code. but i couldn’t really figure it out.

    Couple of issues came along as I followed the instructions on https://kriesi.at/support/topic/wpml-language-selector-in-text-format/#post-524326

    1. I don’t want a dropdown menu. I want DE | EN | FR next to each other

    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_meta_header', 'add_custom_content_to_header');
    function add_custom_content_to_header() {
            do_action('icl_language_selector');
    }
    #531724

    Hi Arthith!

    Thank you for using Enfold.

    Please follow the solution that is provided here: https://kriesi.at/support/topic/wpml-customization/#post-352885

    Cheers!
    Ismael

    #532666

    Okay great thank you

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘WPML LANGUAGE SELECTOR TO LANGUAGE CODE’ is closed to new replies.