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

    Hao can set languages switch on main menu ?

    #854720

    Hey unicaweb,

    Thank you for using Enfold.

    Please add this code in the functions.php file to disable the theme’s language selector configuration.

    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);
    }
    

    Go to the WPML panel and configure the default language switcher.

    Best regards,
    Ismael

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