Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing an issue where the language switcher widget only displays the default language on certain pages (home, contact, FAQ, etc.), instead of offering other languages as it does on product/collection pages.
Solution:
We recommend checking the completeness of the translations for the affected pages by navigating to Pages > All Pages. Look for a pencil icon, which indicates that the translation is complete. If the translations are indeed complete, we advise creating a full backup of the database and website. Afterward, proceed to the WPML > Support > Troubleshooting page and perform the following actions:

  • Clear the Cache in WPML
  • Remove ghost entries from the translation tables
  • Fix element_type collation
  • Fix WPML table collation
  • Set language information
  • Fix post type assignment for translations

Keep in mind that this solution might not be applicable if it's outdated or not relevant to your specific case. If the issue persists, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If necessary, please do not hesitate to open a new support ticket in the WPML support forum.

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.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Mohamed Sayed 10 months, 3 weeks ago.

Assisted by: Mohamed Sayed.

Author Posts
February 19, 2024 at 12:08 pm #15318017

nathanO-5

I also have a problem with that only on product/collection pages, I can choose another language at the bottom of the widget. On all other pages (home, contact, faq...), only the default language is displayed in the wiget (see attachment).

I hope you guys can help me with this.

Kind regards,

Nathan

15315240-Schermafbeelding_2024_02_18_173204.png
February 19, 2024 at 12:18 pm #15318115

Mohamed Sayed

Hi,

Please go to Pages > All Pages, and make sure that the translations of those pages are complete. The complete translation will show a pencil icon.

If it's complete, please create a full backup of the database and website then go to WPML > Support > Troubleshooting page, and click the following:

- Clear the Cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Fix WPML table collation
- Set language information
- Fix post type assignment for translations

Let me know please how that goes.

February 22, 2024 at 9:18 pm #15335634

nathanO-5

Thanks it works, but now the width of certain elements has changed on the translated version of the page. It looks like the html class "container-fluid" has changed to "container" on the translated version (see attachments).

Schermafbeelding 2024-02-22 221058.png
Schermafbeelding 2024-02-22 221134.png
Schermafbeelding 2024-02-22 221619.png
Schermafbeelding 2024-02-22 221723.png
February 23, 2024 at 1:56 pm #15338066

Mohamed Sayed

Hi,

The page layout is controlled by a custom field which is set to "Don't Translate", the default language was using the Full width layout which is not copied to the other languages.

I changed the custom field setting to "Copy" and updated the translation, and then the German language showed the same layout. This will be applied to all the new translations.

Kind regards.

Screenshot_713.png
Screenshot_712.png
Screenshot_710.png
February 23, 2024 at 4:17 pm #15338678

nathanO-5

Thank you, it works!