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

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

    function wpml_filter_langs( $languages ) {
    foreach ( $languages as $k => $language ) {
    $lang_code = explode ( ‘-‘ , $languages[$k][‘language_code’] );
    $languages[$k][‘native_name’] = ucfirst( $lang_code[0] );
    $languages[$k][‘translated_name’] = ucfirst( $lang_code[0] );
    }

    return $languages;
    }
    add_filter( ‘icl_ls_languages’, ‘wpml_filter_langs’ );

    After the last update no longer works add_filter to open the automatic menu of wpml you can help me this code that I worked that has always worked:
    Displays the traditional menu of the theme and displays only in the mobile menu

    #901788

    Hey paso70,

    Thank you for using Enfold.

    I don’t see anything wrong with the language switcher. Is this fixed?

    The login credentials are not working. Please check it.

    Best regards,
    Ismael

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