Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 5 replies, has 2 voices.

Last updated by romainC-18 1 year, 9 months ago.

Assisted by: Christopher Amirian.

Author Posts
July 7, 2023 at 9:23 pm #13970397

romainC-18

Hi,

I need help integrating a WPML language switcher into the new Elementor Mega Menu. I've searched for solutions but have yet to find the right way to add the language switcher to my menu.

Could you please provide instructions or guidance on how to achieve this?
hidden link

Thank you in advance for your help.

July 9, 2023 at 1:55 am #13972239

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Please be aware that the JetMenu is not listed as a compatible plugin and we currently have this issue with the menu:

https://wpml.org/errata/jetmenu-hamburger-menu-widget-language-switcher-points-to-a-wrong-page/

My guess is that you use JetMenu but if I am wrong please inform me which plugin you used.

To add a language switcher you need to use the WPML language settings and assign the language swithcer to a WordPress menu:

https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/#add-a-language-switcher-to-a-menu-footer-or-widget

Then you can see if the Mega Menu picks the language switcher. There is no other special integration going on with Mega Menus.

If the Mega Menu in question supports shortcodes inside menu items, you can add a shortcode inside a menu item, if you do not want to ad dthe language switcher at the end of the menu items and inside a specific sub item:

https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/adding-language-switchers-using-php-and-shortcodes/

The method above will work if the plugin you use supports shortcodes inside the menu item, and you will still need to adjust stylings to match the mega menu view.

Thanks.

July 9, 2023 at 7:05 pm #13973443

romainC-18

Hi Christopher,

Thank you for your prompt and detailed response.

I would like to clarify that I'm not using the JetMenu plugin for my website. In fact, I'm utilizing the Mega Menu that is directly integrated within Elementor Pro, without any additional plugins.

Looking forward to any further guidance you can provide with this information in mind.

Best Regards,

July 10, 2023 at 2:55 pm #14007349

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

With Elementor Menu you can just use the WPML > Languages > Menu Language Switcher option to add the language switcher at the end of the menu.

I you need additional help I would love to have more detailed information on where you want to put the language switcher so I might be able to help.

Thanks.

July 10, 2023 at 3:49 pm #14008159

romainC-18

For the regular Elementor menu, I agree.
In this specific case, it's about Elementor's MegaMenu, which is a new feature integrated into Elementor Pro since early 2023.

Thanks !

Capture d’écran 2023-07-10 à 17.48.04 (1).png
July 10, 2023 at 10:18 pm #14009599

romainC-18

My issue is resolved now. Thank you!

Just need to add [wpml_language_selector_widget] in an Elementor megamenu item