Skip Navigation

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

Problem:
The content of some custom Elemntor widgets created by TheGem theme can't be translated.

The issue happens with the following widgets:
- The Animation Heading widget
- The counter widget

Solution:
The custom widgets were not registered for translation, the following steps fixed it:

1. Add the following XML to WPML > Settings > Custom XML Configuration tab:

<wpml-config>
  <elementor-widgets>
    <widget name="thegem-animated-heading">
      <fields>
        <field>text_content</field>
      </fields>
      <fields-in-item items_of="text_content">
        <field>heading_text</field>
        <field>words_animation1</field>
      </fields-in-item>
    </widget>
    <widget name="thegem-counter">
      <fields>
        <field>counter_description</field>
      </fields>
    </widget>
  </elementor-widgets>
</wpml-config>

2. Edit the page in the default language
3. Make a small change and update the page (You can undo the change later)
4. Update the translation

Relevant Documentation:
https://wpml.org/documentation/support/language-configuration-files/how-to-register-page-builder-widgets-for-translation/

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

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

Assisted by: Mohamed Sayed.

Author Posts
January 4, 2024 at 9:01 am

anthonyM-37

Some website elements are not being translated to any Languages

January 4, 2024 at 9:35 am
January 4, 2024 at 10:10 am #15149905

Mohamed Sayed

Hi,

I need to install the following tool but it shouldn't run on production sites (https://wpml.org/documentation/related-projects/wpml-compatibility-test-tools-plugin/).

Since the staging site is not available, kindly create a copy of your site and provide a link to download it. You can use the Duplicator plugin (https://wordpress.org/plugins/duplicator/) or the All-in-One WP Migration plugin (https://wordpress.org/plugins/all-in-one-wp-migration/).

The plugin will create a package file that you can download then upload again to Google Drive or Dropbox and share the download link in the next reply which I have marked as private. Then I’ll escalate this issue to our developers for further investigation.

Alternatively, you can grant me permission to install one of the above plugins so that I can get the copy from my end.

Please check here for more details: https://wpml.org/faq/provide-supporters-copy-site/
Thanks for your cooperation.

January 4, 2024 at 10:36 am
January 4, 2024 at 2:03 pm #15150982

Mohamed Sayed

Hi,

I registered the two widgets by adding the following XML to WPML > Settings > Custom XML Configuration tab:

<wpml-config>
  <elementor-widgets>
    <widget name="thegem-animated-heading">
      <fields>
        <field>text_content</field>
      </fields>
      <fields-in-item items_of="text_content">
        <field>heading_text</field>
        <field>words_animation1</field>
      </fields-in-item>
    </widget>
    <widget name="thegem-counter">
      <fields>
        <field>counter_description</field>
      </fields>
    </widget>
  </elementor-widgets>
</wpml-config>

I already added the above code to your site, please update the translation with the following steps and you should see the texts available in the translation editor:

1. Edit the page in the default language
2. Make a small change and update the page (You can undo the change later)
3. Update the translation

Kind regards,
Mohamed

Screenshot_478.png
Screenshot_476.png
January 4, 2024 at 3:20 pm #15151943

anthonyM-37

Many Thanks Mohamed for your kind support, i'm able to translate the missing part.