Skip Navigation

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

Problem:
The client reported several issues with their website translation into Simplified Chinese: a) Limited text translation, b) An unwanted section appearing on the Chinese version of the Home Page.

Solution:
We addressed the issue of limited text translation on the homepage. The problem was due to custom Elementor widgets used by the theme CarDealer that were not registered for translation. We provided a custom XML configuration to register the fields of the 'Feature Box' widget for translation:

<wpml-config>
  <elementor-widgets>
    <widget name="cdhl_feature-box">
      <fields>
        <field type="Feature Box Title" editor_type="LINE">title</field>
        <field type="Feature Box Description" editor_type="AREA">description</field>
      </fields>
    </widget>
  </elementor-widgets>
</wpml-config>

After adding the code to WPML > Settings > Custom XML Configuration tab, we instructed the client to update the homepage in English and re-translate it to see the content in the 'Feature Box' translated.

We also recommended that the client contact the theme author to request the registration of all Elementor widgets for translation, as currently, only some theme options and post types are registered. For further guidance, we provided links to our documentation:

Please note that this solution might be outdated or not applicable to your case. If you're still experiencing issues, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.

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 6 replies, has 2 voices.

Last updated by Long Nguyen 9 months, 2 weeks ago.

Assisted by: Long Nguyen.

Author Posts
January 25, 2024 at 12:19 am #15224249
johnW-54

hidden link - There aren't many pages to this website: Home, The Plan, The Exhibition, Dealers, Contact Us, plus privacy pages. I want it all translated into simplified chinese, I've paid for the translations but the website is not really showing much...

Problems:
a) Not much text translated
b) Can't get the language switcher into the top menu,
c) Chinese version of Home Page is showing a section above the video which shouldn't be there.
d) No menu displaying in Chinese translated pages.

Thanks,
John

January 25, 2024 at 2:25 am #15224372

Long Nguyen
Supporter

Languages: English (English )

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

Hi John,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

I see you are using the theme "CarDealer" and its Elementor widgets to create content on the homepage. This theme is not available in our list of compatible themes (https://wpml.org/theme/) and that would lead to some issues that you are having.

I suggest you follow some documentation below and see if your issues resolved:

a) Not much text translated:
Register custom Elementor widgets for translation
https://wpml.org/documentation/support/language-configuration-files/
https://wpml.org/documentation/support/language-configuration-files/how-to-register-page-builder-widgets-for-translation/

b) Can't get the language switcher into the top menu:
Add the language switcher to the header menu or use a custom language switcher
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/custom-language-switcher/

c) Chinese version of Home Page is showing a section above the video which shouldn't be there:
There could be a custom field setting that sets the layout of the page. You can go to WPML > Settings > Custom Fields Translation > Enable "Show "Multilingual Content Setup" meta box on post edit screen." > Save.
Then edit the homepage in English > Find the custom field in the Multilingual box > Set the preference to "Copy" > Update the homepage to sync the layout setting to the translation page.
https://wpml.org/documentation/getting-started-guide/translating-custom-fields/

d) No menu displaying in Chinese translated pages.
Translate the menu or sync the menu to Chinese language.
https://wpml.org/documentation/getting-started-guide/translating-menus/

Look forward to your reply.
Thanks

January 25, 2024 at 10:13 pm #15228391

johnW-54

Hi Long,

I just logged onto the website after your message and found that now, the chinese homepage has completely disappeare: hidden link

In your reply a lot of the advice seemed quite technical.

Do you have a service where someone can fix these issues?

I'm starting to wonder whether I should just do this all myself manually?

Thanks,
John.

January 26, 2024 at 1:34 am #15228560

Long Nguyen
Supporter

Languages: English (English )

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

Hi,

Point b and d, you can do it manually by following the documentation.
Point a and c, we don't support a custom service to fix all issues on your site. However, I can show you how to do that. Then please help us report the issue to the theme author and ask them to join our Go Global program where our Compatibility developers will help them to make their product compatible with WPML.
https://wpml.org/documentation/support/go-global-program/

Next step, I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. Your next reply is set to private to share the info.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme to change configurations on the site if needed. This is also a reason the backup is critical.

Look forward to your reply.
Thanks

January 29, 2024 at 3:02 am #15235190

Long Nguyen
Supporter

Languages: English (English )

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

Hi,

We can handle one issue per ticket only so I will split your issues into other tickets for better handling.

In this ticket, I will focus on the translation of the homepage.

As I mentioned in the first reply https://wpml.org/forums/topic/website-only-partially-translated/#post-15224372
you are using some custom Elementor widgets of the theme to build content on the homepage. And those widgets are not registered for translation. For example: the widget Feature Box.

I add the custom XML configuration code below to WPML > Settings > Custom XML Configuration tab to register fields of this widget for translation.

<wpml-config>
  <elementor-widgets>
    <widget name="cdhl_feature-box">
      <fields>
        <field type="Feature Box Title" editor_type="LINE">title</field>
        <field type="Feature Box Description" editor_type="AREA">description</field>
      </fields>
    </widget>
  </elementor-widgets>
</wpml-config>

Then I edit the homepage in English > Click on Update > Re-translate the homepage, you can see the content in the Feature Box is translated as well.

Refer documentation
https://wpml.org/documentation/support/language-configuration-files/how-to-register-page-builder-widgets-for-translation/
https://wpml.org/documentation/related-projects/wpml-compatibility-test-tools-plugin/

I suggest you contact the theme author and ask them to register all Elementor widgets in their theme for translation, not only some theme options and post types as in their documentation.

Look forward to your reply.
Thanks

Edit
Rapier 2024-01-29 09-44-52.png
Rapier 2024-01-29 09-51-32.png
January 29, 2024 at 10:48 pm #15241137

johnW-54

Hi Long,

Thank you so much for your help. You've been brilliant!

I will reach out to theme author about the widgets and see what they say.

Thanks,
John

January 30, 2024 at 2:07 am #15241328

Long Nguyen
Supporter

Languages: English (English )

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

Let me know if you have any questions.

Thanks.