Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is using a custom language switcher adding it through a shortcode, they are trying to add a language switcher button for four languages using Elementor and is unable to see the dropdown list after publishing the changes.

Solution:
We recommend activating the custom language switcher in WPML -> Languages. Instead of using the menu language switcher, scroll down to the custom language switcher section and add your edits there. After making the changes, check to see if the language switcher dropdown is appearing correctly.

If this solution doesn't seem relevant to your issue, please feel free to open a new support ticket with us.

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 3 replies, has 2 voices.

Last updated by Bobby 1 year, 7 months ago.

Assisted by: Bobby.

Author Posts
November 3, 2023 at 5:59 pm #14727965

tom-van-den-oordT

Tell us what you are trying to do?

I am trying to add a language switcher button for 4 languages. I have included the widget using on the Elementor page and published the changes.
However, when I view the button I cannot see the drop down list at all.

Is there any documentation that you are following?

Yes, I am following the WPML guide for adding a custom language widget on the below link:
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/

Is there a similar example that we can see?

Yes. The example is actually the WPML website. I simply want to have a language switch button similar to what is on the WPML website.

What is the link to your site?

hidden link

November 3, 2023 at 7:20 pm #14728483

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

Are you using an Elementor template for the header and wish to add the switcher in the template?

If you simply want to include the language switcher in the menu, please go to WPML->Languages->Menu language switcher -> Add a switcher and assign it to the menu.

Make sure to deactivate the options for the language name and enable only the flag to display, then it should display similarly to our switcher on the website.

Let me know your results, please.

November 3, 2023 at 8:05 pm #14728597

tom-van-den-oordT

Hello there

Thank you for the quick response.

No, I am using a custom header template created using Elementor.

The Menu itself I added using the ElementsKit Nav Menu. The Language switcher is in its own column completely seperate from the Menu. ( Can be seen on the DOM using Developer Tools )

As for the WPML->Languages->Menu language switcher -> Add a switcher

It indicates: " The button is disabled because there are no menus in the site. Add a menu and you can later enable a language switcher in it. "

Even though I have added the widget in the header Template, on the live site the dropdown list does not hold any languages in it.

I have attached screenshots to help illustrate the picture better.

capture_3.PNG
capture_2.PNG
capture_1.PNG
November 4, 2023 at 1:09 am #14729725

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for updating me!

In WPML -> Languages, instead of the menu language switcher scroll down and activate the custom language switcher.

Within there add your edits and let me know your results, please.

November 8, 2023 at 7:22 pm #14760739

tom-van-den-oordT

Hi Bobby

Thank you for your assistance. Yes, from WPML -> Languages I was able to add a custom widget that matched the one one the WPML site. I had to remove the plugin entirely and reinstall afresh taking gradual steps as per the documentation.

Thank you once again!