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

    Hi,

    long time ago I asked you to put flags as language switcher into my header for the different languages of my site.
    Now I would like to remove them but I can not do this over the WPML menu. I remember that you inserted a code somewhere.
    Could you please tell me where I can find this code snippet for the language switcher (flags) so that I can remove it by myself?

    Thanks in advance!

    #423874

    Hey dentaparks!

    Thank you for using Enfold.

    Add this to the functions.php file:

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

    Best regards,
    Ismael

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