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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Asia/Yerevan (GMT+04:00)

This topic contains 3 replies, has 2 voices.

Last updated by Christopher Amirian 1 year, 9 months ago.

Assisted by: Christopher Amirian.

Author Posts
August 25, 2023 at 6:47 pm #14293647

mb-magu-spaceE

Tell us what you are trying to do?

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

https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/adding-language-switchers-using-php-and-shortcodes/?utm_source=plugin&utm_medium=gui&utm_campaign=languages

Is there a similar example that we can see?

If needed I can set up the module on a staging environment and provide logins.

What is the link to your site?

hidden link

Screenshot from 2023-08-25 21-45-12.png
Screenshot from 2023-08-25 21-43-38.png
August 27, 2023 at 1:09 pm #14296397

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

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

Hi there,

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.

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

Thanks.

September 3, 2023 at 6:27 pm #14332457

mb-magu-spaceE

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.

Screenshot from 2023-09-03 21-25-16.png
September 5, 2023 at 8:16 am #14340903

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

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

Hi there,

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.