Tagged: 

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

    When activating WPML, ENFOLD automatically adds flag symbols to the menu.
    How can I deactivate them?

    Thanks!

    #1180144

    Hey SK-RE,

    Thank you for the inquiry.

    You can use the following snippet to deactivate the default flag switcher.

    // remove the default flag configurations
    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);
    }
    add_action('after_setup_theme','avia_remove_main_menu_flags');

    Best regards,
    Ismael

    #1180292

    Hello,

    I’m having the same issue as SK-RE, but the snippet you gave isn’t working for me :/

    Do you think it would be possible to replace the flags by :
    FR (for French)
    EN (for English)

    Thanks

    #1180603

    Hi I-Visio,

    Please open a new thread and include WordPress admin login details in private so that we can have a closer look at your site.

    Best regards,
    Rikard

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