Skip Navigation

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 0 reply, has 0 voices.

Last updated by Kristof 1 month, 2 weeks ago.

Assisted by: Bruno Kos.

Author Posts
April 22, 2025 at 10:14 am #16954321

Kristof

Background of the issue:
I am trying to translate the Elementor Lists Widget on my site hidden link. Specifically, I want to translate the text '2 slaapkamers / 1 badkamer / 4 slaapplaatsen' found on the page hidden link. I am using WPML for translation.

Symptoms:
I cannot find the text in the (String) Translation Management section of WPML.

Questions:
How can I translate the Elementor Lists Widget using WPML?

April 22, 2025 at 10:29 am #16954444

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Here is the documentation on how to register it:
https://wpml.org/documentation/support/multilingual-tools/registering-custom-elementor-widgets-for-translation/#getting-started

Let me know if you need help with any part of it.

April 22, 2025 at 11:21 am #16954818

Kristof

I get this feedback, see screenshot.

Screenshot_4.jpg
April 22, 2025 at 11:39 am #16955006

Kristof

I found this at the bottom of the original page that holds the Elementor List Widget.
I extracted <widget name="icon-list"> and pasted that code, including wpml-config and elementor-widgets tags in the Advanced XML Configuration and while I now see some extra fields in the ATE, the 3 strings I am looking for are still missing.

<wpml-config>
<elementor-widgets>
<widget name="theme-post-title">
<fields>
<field>__dynamic__>title</field>
<field>title</field>
<field>_animation</field>
</fields>
</widget>
<widget name="image">
<fields>
<field>__dynamic__>image</field>
<field>image_border_radius>unit</field>
<field>image_border_radius>top</field>
<field>image_border_radius>right</field>
<field>image_border_radius>bottom</field>
<field>image_border_radius>left</field>
<field>image_border_radius>isLinked</field>
<field>image_box_shadow_box_shadow_type</field>
<field>image_box_shadow_box_shadow>horizontal</field>
<field>image_box_shadow_box_shadow>vertical</field>
<field>image_box_shadow_box_shadow>blur</field>
<field>image_box_shadow_box_shadow>spread</field>
<field>image_box_shadow_box_shadow>color</field>
</fields>
</widget>
<widget name="theme-post-content">
<fields>
<field>_animation</field>
</fields>
</widget>
<widget name="icon-list">
<fields>
<field>view</field>
<field>icon_list</field>
<field>space_between>unit</field>
<field>space_between>size</field>
<field>space_between>sizes</field>
<field>icon_align</field>
<field>icon_size>unit</field>
<field>icon_size>size</field>
<field>icon_size>sizes</field>
<field>text_indent>unit</field>
<field>text_indent>size</field>
<field>text_indent>sizes</field>
<field>icon_vertical_offset>unit</field>
<field>icon_vertical_offset>size</field>
<field>icon_vertical_offset>sizes</field>
<field>_animation</field>
</fields>
<fields-in-item items_of="icon_list">
<field>text</field>
<field>selected_icon>value</field>
<field>selected_icon>library</field>
<field>_id</field>
<field>__dynamic__>text</field>
</fields-in-item>
</widget>
<widget name="text-editor">
<fields>
<field>editor</field>
</fields>
</widget>
<widget name="heading">
<fields>
<field>title</field>
<field>header_size</field>
</fields>
</widget>
<widget name="gallery">
<fields>
<field>galleries</field>
<field>gallery_layout</field>
<field>ideal_row_height>unit</field>
<field>ideal_row_height>size</field>
<field>ideal_row_height>sizes</field>
<field>show_all_galleries_label</field>
<field>image_border_radius>unit</field>
<field>image_border_radius>size</field>
<field>image_border_radius>sizes</field>
<field>__dynamic__>gallery</field>
</fields>
<fields-in-item items_of="galleries">
<field>gallery_title</field>
<field>_id</field>
</fields-in-item>
</widget>
<widget name="button">
<fields>
<field>text</field>
<field>link>url</field>
</fields>
</widget>
</elementor-widgets>
</wpml-config>

Screenshot_5.jpg
April 22, 2025 at 12:32 pm #16955207

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Would you be willing to provide me with WordPress credentials so I could investigate the issue directly?

Also, please create a simple page with only this widget, along with texts that you want to translate.

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

I marked your next reply as private so that you can safely add credentials.

April 23, 2025 at 6:36 am #16957970

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

I initially suspected the issue on your site might be due to the field being set to "number" (since our translation editor doesn't translate numeric fields by default) or because the fields were set to "copy" instead of "translate."

hidden link

I changed the settings to "translate" and updated the original page, but it still isn't working.

To test further, I tried to reproduce the same setup on my sandbox site:
hidden link

Here's the admin page for the translated version:
hidden link

I created a custom field using Toolset in the same way as on your site, and it seems to be working correctly here. Could you please double-check my sandbox and let me know if it works as expected for you? Also, can you confirm whether the setup matches your site?

April 24, 2025 at 3:00 pm #16964971

Kristof

Sorry for the late reply, I didn't get a notification of update in my mailbox.
I can see you used the Elementor List Widget that loads a Toolset field and then shows some string after the Toolset field, this is exactly what I am trying to achieve.

However, I looked at your custom XML configuration and there is nothing there, so how did you manage to show the 2 'after' strings in the ATE for translation?

April 24, 2025 at 3:12 pm #16965086

Kristof

I have added a brand new List Widget and first tried with just static strings, they showed up in the ATE. Then I switched to dynamic Toolset fields, the static strings still showed. Then I added some 'before' and 'after' text for the first Item, and now those strings show in the ATE.

But static 1, static 2 and static 3 shouldn't be there.

UPDATE: it seemed to work with 1 list item, but not with three. But then I removed 2 items, and now it no longer works with 1. So this is very buggy 🙁

Screenshot_6.jpg
April 25, 2025 at 5:54 am #16966829

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

I didn’t create any XML. These custom fields have the "translate" preference set, so they should work by default. Since these are custom fields and not Elementor values, XML is not required.

Regarding the issue with not receiving emails, could you please check if this option is enabled on your end?

Since we're unable to reproduce the issue in the sandbox environment, I’d like to install the Duplicator plugin on your site and generate a package for further debugging. I’ll make sure to exclude all media files to keep the package size minimal.

You can find more details about this process here:
https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/#get-help-from-support

Please confirm if this approach works for you.

change here.jpg
April 28, 2025 at 9:21 am #16973911

Kristof

I was able to translate the 'after' labels for the Elementor List Widget.