Background of the issue:
I am trying to configure the language switcher in my main menu to display only the native language without showing the language name or current language. I am using the Porto theme for WooCommerce, which allows me to adjust the switcher's position. The issue can be seen on this page: hidden link
Symptoms:
The main menu language switcher shows the language name and current language despite the setup to display only the native language. The mobile menu switcher works correctly.
Questions:
How can I configure the language switcher in the main menu to display only the native language?
Why does the language switcher in the main menu not reflect the setup while the mobile menu does?
1. To display a language switcher in menu and customize it, please try to follow the below steps:
- Make sure to enable the Menu Language Switcher from WPML >> Languages > Menu Language Switcher.
- Click on the Edit language switcher icon as you can see in the attached screenshot.
- Customize the language switcher according to your needs and see if this resolves the issue.
2. If you want to display language switcher in some other position using Elementor page builder, please follow the below steps:
- Edit the Elementor header template.
- Add the “Shortcode” widget and add the below shortcode in it:
[wpml_language_selector_widget]
- Go to WPML >> Languages > Custom Language Switchers and choose the “Enable” checkbox option and press the “Customize” button and you can customize it according to your needs.
Please let me know if this resolves the issue or if you need further assistance with this issue.
Thank you
The topic ‘[Closed] Language Switcher’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.