I am trying to add the language switcher widget in my page. On desktop through page builder I add a language switcher widget which shows just fine, however I cannot use the same language switcher widget for tablet/phone view. I am trying a different solution by adding the HTML embedded code to customized for tablet/phone view, however it doesn't display the way I want to. (added photos)
1st is the 'language switcher' widget in the page builder.
2nd is tablet, but the same thing happens in phone view as well.
Is there any documentation that you are following?
Just trying to place the embedded HTML wherever I want, from the
With the shortcode you can add only one instance of the custom language switcher. If you need to add another one, I suggest that you use the menu language switcher which is another instance.
alright I'll use the custom language switcher on desktop and on tablet/mobile I would like to use the shortcode, however the shortcode doesn't seem to work the way I customized it, I wanted to only show flag, but the name of the language appears as well and the .svg doesn't show at all.
It seems that you misunderstood me. The custom language switcher which you can find in WPML > Languages > Custom Language Switcher is what shortcode loads.
All the customization you do there will reflect in [wpml_language_selector_widget] shortcode.
What I suggested was to use the menu language switcher as the desktop one which will add the language switcher to your website menu, and the customization of that can be done from WPML > Languages > menu Language Switcher.
And you can use the custom language switcher with the shortcode on the mobile.
Hope I was clear.
Thanks.
The topic ‘[Closed] language select option not displayed properly’ 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.