Background of the issue:
I have translated my website from English to several other languages using WPML. I am using Elementor to create text areas with dynamic tags. I mostly work with automated translations, but I also try to translate manually. The issue can be seen on this page: hidden link
Symptoms:
Some text areas created with Elementor with dynamic tags are not translated. In the example, 'Canada' is the dynamic tag. The translation works for the first paragraph but is ignored for the second paragraph. Even when I try to translate manually, I don't see these strings. Outdated translations appear in string translations but do not show on the front end.
Questions:
Why are some dynamic tags not translated in Elementor text areas?
How can I update outdated translations in string translations?
We need to replicate this issue on a fresh WordPress installation. Then, I'll be able to escalate it to our compatibility team. For this, I created a test website with a clean WordPress install. You can access it through this link:
hidden link
With this link, you'll be directly logged in.
I've installed Elementor Pro on this test site. WPML is configured to have English as the default language and Dutch as the second language.
Please let us know when everything is finished and you can replicate the problem.
Important! Do not import your site to the test site. We must replicate the problem on a fresh, clean WordPress installation.
Hi, thanks, on the Sample page I tried to replicate this, but there are two reasons why I could not do this so far:
- First of all I don't have the problem in all cases. Part of the translations with a dynamic tag in it go fine, others don't. Now both samples go fine.
- On my website I use JetEngine to create additional Meta fields, which I try to include in the text areas. JetEngine is not available in this test setting at this moment.
Do you have the option of adding JetEngine to the test environment?
I have created a custom field 'Country' with JetEngine and included it in both a heading and a text area. Both are no problem.
But I have additional information from my own website: I found out that the problem only occurs with text areas with a custom field in it. In headings and also Q&A blocks it works fine.
If I add a new text area with custom field in the English version, and want to do a translation, I don't find the new 'before' and 'after' sentences in the Advanced Translation Editor. With other block types, or in case I just use a text area without any custom fields in it, there is no problem.
This started recently after an update of my plugins on the website, both of Elementor and WPML
In the wpml settings I see various custom fields and this specific one (Country) is set to translate. And this translation is done, as I can see in the headings.
My workaround for now is to use the Elementor headings in stead of the text areas and then use the <span> option so that I see normal text. Then the parts 'before' and 'after' show up in the translations and are also being translated automatically if I want that.