Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #828663

    Hello.
    After updating ENFOLD suddenly there are flags next to my WPLM laguage selector. I cant seem to figure out how to remove them

    #828666

    Hey. Just figured it ot after reading your advice to another user.
    I inserted the following into my child theme functions file:

    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);
    }
    add_action(‘after_setup_theme’,’avia_remove_main_menu_flags’);

    #828877

    Hi,

    Glad that it’s all good now. Thanks for using Enfold :)

    Best regards,
    Nikko

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