Skip to content Skip to sidebar

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

Problem:
The client is unable to use the Advanced Editor to translate or provide alternate content for Elementor elements such as Shortcodes or HTML blocks. Specifically, there is no option to edit this content for French in the Advanced translation editor.
Solution:
1) To translate the shortcode, follow these steps:
- Add the following XML code to WPML-> Settings-> Custom XML tab:

<wpml-config><shortcodes><shortcode><tag>searchandfilter</tag><attributes><attribute>id</attribute></attributes></shortcode></shortcodes></wpml-config>

- Translate the strings in the search form by editing the page in the default language, making a minor edit, and updating it. After updating the translation, the search form will be translated.
2) For the HTML widget that uses scripts (which WPML does not support), the workaround is to edit the translated page using Elementor and manually change the code.

If this solution does not resolve your issue or seems outdated, 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 2 replies, has 0 voices.

Last updated by Osama Mersal 4 months, 1 week ago.

Assisted by: Osama Mersal.

Author Posts
March 8, 2025 at 8:47 pm #16791986

aaronM-23

Background of the issue:
I am trying to use the Advanced Editor to translate or provide alternate content for Elementor elements such as Shortcodes or HTML blocks. The issue can be seen on this page: hidden link. I expected to see the option to use alternate HTML code for French and shortcode content in the advanced translation editor for pages such as hidden link.

Symptoms:
No option to edit this content for French in the Advanced translation editor.

Questions:
Why is the Advanced Editor not allowing me to translate Elementor elements such as Shortcodes or HTML blocks?
How can I enable the option to use alternate HTML code for French in the Advanced translation editor?

March 9, 2025 at 5:18 pm #16793368

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

Please check this guide to know more about translating HTML attributes.

Best regards,
Osama

March 9, 2025 at 8:03 pm #16793549

aaronM-23

The guide shows exactly what I would like to see but I am NOT seeing. I don't see HTML blocks, nor do I see Shortcode blocks. It is not showing at all. I am using Elementor

March 10, 2025 at 1:41 am #16794034

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please back up your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

March 11, 2025 at 2:10 am #16799133

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

1) Thanks for the access details. Please check the following steps to translate the shortcode on this page. (hidden link)

1- Add the following XML code to WPML-> Settings-> Custom XML tab

<wpml-config>
<shortcodes>
  <shortcode>
  <tag>searchandfilter</tag>
    <attributes>
    <attribute>id</attribute>
    </attributes>
  </shortcode>
  </shortcodes>
</wpml-config>

2- Translate the strings in the search form (hidden link)
3- Edit the page in the default language
4- Make a minor edit and update it
5- Update the translation

After that, the search form will be translated. (Kindly check this hidden link">screenshot)

2) The hidden link">HTML widget on this page (hidden link) won't be translated because it uses scripts, which WPML does not support.

The workaround for this case is to edit the translated page using Elementor and change the code.

3) I'm not sure that I understand your Elementor Image question. Please let me know what you want to modify in the image widget.

Best regards,
Osama