Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1311396

    Dear support,
    i want to remove the language flags in the main-menu. The following code did the trick but stopped working. now.
    How can i hide the flags now?

    //hide flags
    function ava_remove_default_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','ava_remove_default_flags');
    #1312211

    Hey dondela,
    Thank you for your patience, have you tried disabling the language switcher at WPML ▸ Languages
    wpml_language_switch_options.jpg
    Another option is to try this css:

    #header_main #avia-menu .av-language-switch-item { display: none; }

    Best regards,
    Mike

    #1312368

    Hey Mike,
    the css did the trick, thank you so much for your help!
    Great support, as always :-)

    #1312369

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Remove wpm flags in menu’ is closed to new replies.