Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- - 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 3 replies, has 0 voices.

Last updated by Andreas W. 1 week, 1 day ago.

Assisted by: Andreas W..

Author Posts
September 19, 2025 at 2:05 pm #17417056

Pavel

Background of the issue:
I am trying to translate a dynamic tag named 'Product Sale' that I assigned to an Elementor text widget. This tag has a text value that should display when a product is on sale. Currently, WPML does not allow me to translate this message.

Symptoms:
Instead of seeing a translation or a new field to input another value, I only see the original text.

Questions:
How can I translate the dynamic tag 'Product Sale' in Elementor using WPML?

September 19, 2025 at 7:11 pm #17417701

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

Hello,

When translating the page using the Advanced Translation Editor, please try to search the text in the text field on the top right corner.

If the text is not available, please let me know, and I will try to replicate the issue on a test site, and we will provide a solution.

Best regards
Andreas

September 30, 2025 at 8:48 am #17443251

Pavel

Hello, Andreas, we are using Classic Translation Editor. We can now switch to advanced.

October 1, 2025 at 1:40 am #17446962

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

My apologies, as I was a little too fast with my reply.

I hope you have not yet made this change, as I was not expecting that you would use the Classic Translation Editor.

If you switch to the Advanced Translation Editor, you will need to redo the translations, as it is not possible to keep translations from the Classic Translation Editor inside the Advanced Translation Editor.

It is sadly only possible to switch from the Advanced Translation Editor back to the Classic Translation Editor, without losing translations.

I created a test site today with Elementor PRO, WooCommerce, and WPML, and I was able to confirm that this field is not yet translatable.

To make the field translatable, please add the following markup at WPML > Settings > on the tab "Custom XML Configuration":

<wpml-config>
  <elementor-widgets>
    <widget name="text-editor">
      <fields>
        <field>text_columns</field>
        <field>__dynamic__>editor</field>
      </fields>
    </widget>
  </elementor-widgets>
</wpml-config>

After that, edit the widget in Elementor on the original content, save the page, and then open the translation editor. This should work with the Classic Translation Editor or the Advanced Translation Editor.

The only problem here is that on ATE, you might still need to search the text, and on both editors, the text will appear this way:

%7B%22text%22%3A%22Sale!%20Foo%20Bar%22%7D

This string is a URL-encoded JSON object. When decoded, it becomes:

{"text":"Sale! Foo Bar"}

This means that Elementor is, in this case, not only sending the raw text. This is kind of a known issue for which we do not yet have a general solution.

Workaround:
Edit the text on the translation directly inside Elementor.

Alternatively, if you have a Child Theme or Custom Code Snippet in place, we could try to apply the following solution:
https://wpml.org/documentation/support/translating-urlencoded-shortcodes/