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

    Hi,

    I configured WPML to display the language switcher at our menus.
    What happened them is that I have the language switcher, working well, but I still have all the theme language flags fixed on my menus.

    Reading some of your posts I notice that you have a turnaround solution for that. I applied that on my child theme functions.php, but nothing happens, the problem still remains. Please advise.

    Content of my child theme functions.php

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

    #690367

    Hey Pedro,

    Thanks for reaching out to us!

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    Login credentials include:

    • The URL to the login screen.
    • A valid username (with full administration capabilities).
    • As well as a password for that username.
    • permission to deactivate plugins if necessary.

    Best regards,
    Jordan

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