Home›Support›English Support›[Resolved] I am trying to add a language switcher button with a dropdown list
[Resolved] I am trying to add a language switcher button with a dropdown list
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.
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?
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.
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.
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.