Tagged: 

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

    Hi there!

    We are running into problems of disabling the language switch (WPML) in the main menu. We’ve already stuck the WPML switcher at the top of the page, but wish to disable it in the menu section. We’ve already looked through the WPML configuration and can’t seem to disable it in the Enfold Menu. Please advice! Thank you.

    #588730

    Hey stephtong,

    Please send us a temporary admin login so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Thanks,
    Rikard

    #591097

    Attached below! Thanks

    #592002

    Hi!

    Looks like you managed to remove the flags with the following css:

    .avia_wpml_language_switch {
    display: none;
    }

    You can also try this in 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);
    }

    Regards,
    Ismael

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