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
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 -

Supporter timezone: Europe/Zagreb (GMT+01:00)

Tagged: 

This topic contains 6 replies, has 0 voices.

Last updated by Dražen 1 day, 14 hours ago.

Assisted by: Dražen.

Author Posts
February 24, 2026 at 12:21 pm #17846474

evitaB-3

There is a bug in Menu Widget in Footer - first it didnt display in DE and FR and now when i tried to rechoose the Menu in this widget in EN original language FR menu showes up.

February 24, 2026 at 12:47 pm #17846711

Dražen
Supporter

Languages: English (English )

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

Hello,

Since you have been inactive in the chat for a while, I created this ticket so we can continue here.

Please share the access details of your website, so I can log in and take a look.

I’m enabling a private message for the following reply.

We have strict policies regarding privacy and access to your information.

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


- Please backup the site files and database before providing us access. 


Regards,
Dražen

February 24, 2026 at 1:09 pm #17846854

Dražen
Supporter

Languages: English (English )

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

Hello,

Thanks, I have checked, but I would need to temporarily disable some plugins and possibly switch themes to investigate further.

Please let me know if it is possible to create a staging site using the WP Staging plugin. If not, I can take a copy of the website and check it locally instead.

Let me know what works best for you.

Regards,
Dražen

February 25, 2026 at 9:51 am #17850557

evitaB-3

I have created now staging site. please proceed or if its not done correctly feel free to create one yourself. thank you!

February 25, 2026 at 12:18 pm #17851376

Dražen
Supporter

Languages: English (English )

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

Hello,

Thanks for your patience. I checked further and found the cause of the issue.

You are adding script code inside an Elementor HTML widget. This is not expected behavior for WPML translation tools, as they are designed to handle standard HTML content. Adding custom script code inside Elementor builder content can cause issues during translation.

<![CDATA[<script type="application/ld+json">
{
  "@context": "<em><u>hidden link</u></em>",
  "@type": "AutoRental",
  ...
}
<!-- wpml:html_fragment </script> -->
]]>

When I remove the script from the widget, everything works correctly.

In your case, the best approach would be to move that custom code into a small PHP snippet and include it via a shortcode or hook instead of placing it directly inside the Elementor content.

Regards,
Dražen

February 26, 2026 at 1:33 pm #17856701

evitaB-3

Hello,

Thank you for the explanation but this is hard for me to understand..

1. This error appeared once i migrated the website to other wordpress installation.
2. whats menu widget got to do with a HTML script ( please where is this script inserted????)

If this would be the case as you suggest the error occurs - why all was well previously?

Thank you so much in advance

February 27, 2026 at 6:16 am #17858608

Dražen
Supporter

Languages: English (English )

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

Hello,

Thank you for your message, I understand this can be confusing so let me clarify.

The script is inserted inside an HTML widget in footer template. When WPML Advanced Translation Editor (ATE) processes the content, it parses and restructures HTML. Script inside editable content (like HTML widgets) are not supported and can break the translation structure like it happens with your translated footer template.

ATE is designed to translate text content, not to safely handle JavaScript code inside editable HTML blocks. Because of this, including <script> code inside a template’s HTML widget is not recommended and can lead to broken translation jobs.

It may have worked before if:

- The content was translated using the Classic Translation Editor or manually instead of ATE

- The script was not part of the translated content previously

- The template was structured slightly differently

However, adding JavaScript inside an HTML widget that is processed by ATE is not supported and can cause issues, I know this from cases before and have tested your code on fresh website.

Best practice would be to move the script to the theme or add it via a dedicated plugin for inserting header/footer scripts

This way the script is not part of the translatable content and WPML will not attempt to process it.

Hope this helps.

Kind regards,
Dražen

Edit-Footer-with-Elementor-02-27-2026_07_12_AM.jpg