Skip Navigation

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

Problem:
You are trying to auto-translate an Elementor page with custom created widgets using WPML. Despite adding a custom XML configuration for the widgets and updating strings, the widgets are not being translated.
Solution:
We recommend updating your custom XML configuration as follows:

<wpml-config>
  <elementor-widgets>
    <widget name="fs-hero-slider">
      <fields>
        <field>slider</field>
        <field>hero_effect</field>
        <field>arrows_size>unit</field>
        <field>arrows_size>size</field>
        <field>arrows_size>sizes</field>
      </fields>
      <fields-in-item items_of="slider">
        <field>_id</field>
        <field>hero_title</field>
        <field>hero_subtitle</field>
        <field>first_button_text</field>
        <field>second_button_text</field>
        <field>hero_image>url</field>
        <field>hero_image>id</field>
        <field>first_button_url>url</field>
        <field>second_button_url>url</field>
      </fields-in-item>
    </widget>
  </elementor-widgets>
</wpml-config>

You can add this configuration in WPML -> Settings -> Custom XML Configuration.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at 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 8 replies, has 0 voices.

Last updated by Otto 1 month, 1 week ago.

Assisted by: Otto.

Author Posts
April 24, 2025 at 4:36 pm #16965477

connect-us-uabI

<b>Background of the issue: </b>
I'm trying to auto translate an Elementor page with custom created widgets using WPML. I've added a custom XML configuration for the widgets, but it's not working. The widgets are not being translated even after updating strings.

<b>Symptoms: </b>
No translations found from the custom created widgets after adding custom XML configuration and updating strings.

<b>Questions: </b>
What am I doing wrong with the custom XML configuration for translating widgets?
Why are the custom widgets not being translated even after updating strings?

Screenshot 2025-04-24 at 19.33.36.png
April 24, 2025 at 6:12 pm #16965812

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

To ensure the quickest and most accurate support, please provide your debug information so I can look at some of your configurations. We have an excellent article on how to locate it here: https://wpml.org/faq/provide-debug-information-faster-support/.

Where are the custom widgets coming from? An Elementor add-on? Which one? Custom code? Can you share it?

Best Regards,
Otto

April 24, 2025 at 7:05 pm #16965926

connect-us-uabI

Widgets are in this theme that we bought hidden link

Attached some screenshots of widget codebase

Screenshot 2025-04-24 at 22.04.51.png
Screenshot 2025-04-24 at 22.04.23.png
April 24, 2025 at 7:55 pm #16966162

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

This theme is not in our compatibility list, however, it doesn't necessarily imply that it is not compatible, just that our team has not tested it yet.

On the other hand, on the theme sales page, they claim to be compatible with WPML. I suggest raising the issue with them too.

Anyway, I'd like to take a look at the issue 🙂

I created a clean installation of WordPress, WPML, and all necessary WPML add-ons.
You can access the WordPress dashboard using the link below:
hidden link

Kindly follow the steps below:

- Don't restore your site there.
- Install the Levre theme
- Try to replicate the issue with minimal steps.
- Then let me know the steps to see the problem and reproduce it.

Best Regards,
Otto

April 25, 2025 at 8:16 am #16967335

connect-us-uabI

I've launched theme but can't translate, credits missing. Please try to translate. Screenshots attached for problematic widget

Screenshot 2025-04-25 at 11.15.41.png
Screenshot 2025-04-25 at 11.15.47.png
April 25, 2025 at 1:59 pm #16968954

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Thanks.

I managed to reproduce the issue in the Sandbox site. I'll take a look and get back to you.

Best Regards,
Otto

April 25, 2025 at 4:17 pm #16969441

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Please try this config XML:

<wpml-config>
  <elementor-widgets>
    <widget name="fs-hero-slider">
      <fields>
        <field>slider</field>
        <field>hero_effect</field>
        <field>arrows_size>unit</field>
        <field>arrows_size>size</field>
        <field>arrows_size>sizes</field>
      </fields>
      <fields-in-item items_of="slider">
        <field>_id</field>
        <field>hero_title</field>
        <field>hero_subtitle</field>
        <field>first_button_text</field>
        <field>second_button_text</field>
        <field>hero_image>url</field>
        <field>hero_image>id</field>
        <field>first_button_url>url</field>
        <field>second_button_url>url</field>
      </fields-in-item>
    </widget>
  </elementor-widgets>
</wpml-config> 

You can add it in: WPML -> Settings -> Custom XML Configuration

Best Regards,
Otto

April 27, 2025 at 3:25 pm #16972450
connect-us-uabI

Hi,

Thanks, it worked! Now I have problem with template hidden link

Accordion is used as template. I've modified xml and now it's translated in WPML translation editor (screenshot attached), but when I change language in website, this block/template is not being translated. Just other blocks. Can you help me with that?

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

https://wpml.org/forums/topic/translate-levre-theme-accordion/

Screenshot 2025-04-27 at 18.20.12.png
Screenshot 2025-04-27 at 18.19.52.png
April 28, 2025 at 1:23 pm #16974996

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Great, I am glad it worked.

I am closing this ticket and opening a new one for the new issue you reported.

I'll follow up here:
https://wpml.org/forums/topic/translate-levre-theme-accordion/

Best Regards,
Otto