Skip to content Skip to sidebar

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
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 1 reply, has 2 voices.

Last updated by Long Nguyen 1 year, 5 months ago.

Assisted by: Long Nguyen.

Author Posts
March 28, 2024 at 2:20 am #15458581

siddharthS-2

Hi,

I want the language switcher to automatically show the flags of the languages that a page is available in. So if a page is available in English, Russian and French, then it should automatically detect and show those 3 flags on the frontend for the end user to choose from.
Is that possible?

I don't want to set the language flags per page for the language switcher.
Thanks.

March 28, 2024 at 4:40 am #15458687

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Siddharth,

Thank you for contacting WPML support, I’m happy to help you with this issue.

Yes, the language switcher will work like that. You can go to WPML > Settings > Post Types Translations > Set the translation preference of Pages to "Translatable - Only show translated items" > Save. Then translate pages into second languages and follow the documentation below to setup the language switcher onyour site.
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/

Looking forward to your reply.
Thanks

The topic ‘[Closed] Does the language switcher already know which languages a page is available in?’ is closed to new replies.