Passer la navigation

Ce sujet est résolu. Voici une description du problème et de la solution.

Problem:
The secondary language flag was missing from WPML Language Switcher.
Solution:
Ensure that you have translated your site pages into the secondary language and that these pages are set to 'Published' status, not 'Draft'. You can confirm this by logging into your site and checking if the language switcher appears correctly for logged-in users. If it does, then the issue is likely due to pages being in 'Draft' status, and you can resolve it by changing the status to 'Published'.

Il s'agit du forum d'assistance technique de WPML, le plug-in multilingue pour WordPress.

Il est accessible à tous, toutefois seuls les clients de WPML peuvent y publier leurs messages. L'équipe du WPML répond sur le forum 6 jours par semaine, 22 heures par jour.

Marqué : 

Ce sujet contient 5 réponses, a 2 voix.

Dernière mise à jour par Noman Il y a 1 année et 3 mois.

Assisté par: Noman.

Auteur Messages
février 17, 2024 à 5:10 pm #15314012

maxB-38

Hello
I only see the French flag but I can't change to choose the other languages

help me

dra.PNG
février 18, 2024 à 9:15 am #15314613

Noman
Partisan de WPML depuis 06/2016

Les langues: Anglais (English )

Fuseau horaire: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. I visited your site and I can see the issue on your site. WPML displays the secondary language flag when the translation is available in that language. Can you please make sure you have translated your site pages into a secondary language and the secondary language page status is set as Published and not Draft?

You may confirm it by checking the issue after logging in to your site. If it’s working correctly for logged-in users then this issue is due to the Draft status and you can fix it by switching the Draft page status to Publish.

If the issue persists, please add the debug report in the Debug Information box. I have also enabled the debug info box for your next reply: https://wpml.org/faq/provide-debug-information-faster-support/

Thank you

février 18, 2024 à 2:59 pm #15315055

maxB-38

Hello
yet on this page I see flags at the bottom.

lien caché

février 18, 2024 à 3:30 pm #15315095

Noman
Partisan de WPML depuis 06/2016

Les langues: Anglais (English )

Fuseau horaire: Asia/Karachi (GMT+05:00)

Yes, I can see the other languages on the language switcher for that page and some other pages. But for the pages that are causing issues, could you please check two things:

1. Please make sure the translation is 100% complete in secondary languages.
2. The status of page is set as Published and not Draft.

If the issue still persists on any page, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue.

Your next answer will be private which means only you and I have access to it.

=== Please backup your database and website ===

✙ I would additionally need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is really important.

Thank you

menu switcher.png
footer switcher 1.png
février 18, 2024 à 4:33 pm #15315239

maxB-38

browndavis

février 19, 2024 à 7:51 am #15316132

Noman
Partisan de WPML depuis 06/2016

Les langues: Anglais (English )

Fuseau horaire: Asia/Karachi (GMT+05:00)

Thanks for sharing the login details. I've noticed that pages with translations in other languages show the language switcher correctly. For the remaining pages, you need to add the translation, and it will display the language switcher correctly.

For example, the FAQ page shows a plus(+) icon, which means the translation hasn't been added yet. On the other hand, the contact page shows a pencil icon, indicating the translation is added, and the language switcher will display correctly.

You can find more details about translation icons in this doc:
https://wpml.org/documentation/getting-started-guide/#translation-icons

Please complete the translations for the pages. If the language switcher still doesn't appear after adding the translation, let me know, and I'll check and debug it further.

Thank you

translation status.png
contact page frontend.png
FAQ page frontend.png