Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #318571

    Hi, after updating Enfold, WPML plugin and WP to the latest versions the language menu item is not showing in my main menu,

    I checked the settings and are correct.

    How can I fix it?

    #318781

    Hi Jorge!

    Thank you for using Enfold.

    Did you set the Display the language switcher in the WP Menu to your Main Menu?

    Regards,
    Ismael

    #319324

    Hi Ismael, yes the option is marked.

    Any other thing I must check?

    Regards.

    #319589

    Hi!

    Did you modify or add any snippets to modify the WPML language switcher? Please post the login details here and set it as a private reply. We would like to check it.

    Regards,
    Ismael

    #320618
    This reply has been marked as private.
    #321008

    Hey!

    Please try adding this on functions.php to remove the default theme language switcher:

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

    Cheers!
    Ismael

    #321261

    Hi Ismael, I can see that this code is in the functions.php. I can´t see the WPML menu item in the front end.
    It should be the last menu item.

    Any other idea?
    As I mentioned before, this happened after updating WPML plugins.

    #321971
    This reply has been marked as private.
    #322234

    Hey!

    I fixed it. I just had to re-save the WPML options.

    Best regards,
    Peter

    #335252
    This reply has been marked as private.
    #335756

    Hi!

    Please add the code Ismael posted here: https://kriesi.at/support/topic/wpml-menu-item-not-showing/#post-321008 to the child theme (or enfold) functions,php file. Otherwise Enfold will add the theme language switcher to the menu and WPML will add the default language switcher to the menu too.

    Cheers!
    Peter

    #335788

    Thanks Dude. Now I get it.

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘WPML menu item not showing’ is closed to new replies.