Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #269963

    Hi,

    after updating everything recently (enfold, WPML, wp) our WPML switcher in top menu has
    now gone back to being a horizontal list instead of a nice dropdown. we
    will have many languages so dropdown is required. – any ideas what we might be doing
    wrong or how to fix it?

    Many Thanks

    Leigh

    #269964
    This reply has been marked as private.
    #270204

    Hey!

    1) Insert this code into your child theme functions.php file to deactivate the default theme flags/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', 20, 2 );
            remove_filter( 'avf_fallback_menu_items', 'avia_append_lang_flags', 20, 2 );
            remove_action( 'avia_meta_header', 'avia_wpml_language_switch', 10);
    }
    

    2) Then go to WPML > Languages and tick the “Display the language switcher in the WP Menu” option. You can also configure the language switcher type (dropdown, list, etc.) on this option page.

    Regards,
    Peter

    #275546

    Wonderful !!! Thanks a lot !! It works perfectly now !

    #275550

    Hi!

    Great :)

    Cheers!
    Peter

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