Skip to content Skip to sidebar

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

Problem:
The client was trying to translate a page into Chinese, but the content is not visible on the translated page.

Solution:
We have discovered that the content on the Chinese translated page is hidden due to CSS rules. Specifically, the following CSS was causing the issue:

html[lang="zh-hans"] {
    display: none !important;
}

This CSS rule is likely added with the page builder. We recommended checking the custom CSS sections to locate and remove this rule. Once removed, the translated content should display correctly.

If this solution does not seem relevant to your issue, please open a new support ticket with us for further assistance.

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.

This topic contains 9 replies, has 2 voices.

Last updated by Mohamed Sayed 1 year, 8 months ago.

Assisted by: Mohamed Sayed.

Author Posts
November 28, 2023 at 2:00 am #14935561

summerw

Tell us what you are trying to do?
translate a page to Chinese

hidden link

hidden link

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

hidden link

November 28, 2023 at 11:23 am #14938085

Mohamed Sayed

Hi there,
Thanks for contacting WPML support.

Please try the following steps to update the translation:

- Edit the page in the default language
- Make a small change and save the page
- Update the translation and complete it

If the issue persists, 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 if that helps.

Kind regards,
Mohamed

November 29, 2023 at 1:08 am #14945361

summerw

All done and not working, and I found a new page, the Chinese translated page is 404, too. hidden link

November 29, 2023 at 2:25 am #14945553

summerw

I also think this is a bug after the steps are done: 2 pages came out in the main domain (English).
hidden link

hidden link

微信截图_20231129102325.png
November 29, 2023 at 7:39 am #14946687

summerw

All new pages Chinese version turns out to be 404
hidden link

November 29, 2023 at 9:59 am #14948447

Mohamed Sayed

Hi,

I would need to request temporary access (WP-Admin and FTP) so I can investigate this issue further.
– preferably to a test site where the problem has been replicated if possible –

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

❌ Please backup your database and website before providing us with access details ❌

✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme and to change configurations on the site if needed. This is also a reason the backup is critical.

✙ I would also need your permission to take a local copy of your site to debug the issue without affecting your live site. To do this, I will need to install one of the following plugins:

- https://wordpress.org/plugins/duplicator/
- https://wordpress.org/plugins/all-in-one-wp-migration/

If you don't see the form below, please don't add your credentials as they will be publicly exposed:
hidden link

Privacy and Security when Providing Debug Information for Support:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Thanks for your cooperation

November 30, 2023 at 1:04 pm #14962839

Mohamed Sayed

Hi,

I imported the site copy to perform more tests and found that the page will load when Elementor is disabled (hidden link)

I couldn't find any conflict issues between Elementor and other plugins that might be causing this issue, so I escalated the ticket to our 2nd tier support team for further investigation.

I will update you once I get their reply.

December 1, 2023 at 11:51 am #14972165

Mohamed Sayed

Hi,

Our 2nd tier supporters found that the page content is hidden with CSS (Kindly check the attached screenshot):

html[lang="zh-hans"] {
    display: none !important;
}

This is probably coming from Elementor, could you please check where this is added and remove it?

image (2).png
Screenshot_361.png
December 4, 2023 at 1:03 am #14981651
summerw

Great, the problem of contact us page is solved.
But the translation of all new pages have a common bug: the url is not translated and is replaced by a id=XXX, like this one:
Original: hidden link
Chinese: hidden link
Deutsch: hidden link
Korean: hidden link

New threads created by Mohamed Sayed and linked to this one are listed below:

https://wpml.org/forums/topic/split-the-slug-is-not-translated-and-replaced-by-the-page-id/

December 4, 2023 at 8:00 am #14982647

Mohamed Sayed

I'm glad to hear that the first issue was resolved.

For better support, we handle one issue per ticket so I've created a new ticket for the other issue you mentioned.

Kindly mark this ticket as resolved and we will continue the discussion here: https://wpml.org/forums/topic/split-the-slug-is-not-translated-and-replaced-by-the-page-id/