Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #914851

    Hi,

    i dont know how to delete the second language switcher section in the header?

    Please help.

    #915029

    Hey OSD,

    You need to disable the plugin of the language and that would remove it.

    Best regards,
    Basilis

    #915985

    Hey Basilis,

    i did disable the wpml multilingual cms plugin and reactivated it. No changes :(

    I also did include in functions.php (like i find in other posts) (by the way this code did work at our second website) :
    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);
    }

    #916249

    Hi,

    I do not see a selector now, but only the flags.
    Managed to fix it out?

    Best regards,
    Basilis

    #922221

    i fixed it by putting following code to functions.php

    //bugfix mit language switcher

    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’, 9998, 2 );
    remove_filter( ‘avf_fallback_menu_items’, ‘avia_append_lang_flags’, 9998, 2 );
    remove_action( ‘avia_meta_header’, ‘avia_wpml_language_switch’, 10);
    }

    #922312

    Hi OSD,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.