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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Kyiv (GMT+03:00)

This topic contains 5 replies, has 1 voice.

Last updated by Andrey 8 hours, 56 minutes ago.

Assisted by: Andrey.

Author Posts
September 15, 2025 at 1:44 pm #17402589

romainO-2

Background of the issue:
I am trying to get the same iframe code in the translation. Here is the code I am using: <script>var widgetConfigs=widgetConfigs||{};widgetConfigs["68409e4b6dd92e5bcc2d678d4f2d6917076613a19f298fcaa782ab57c63adcfe"]={},widgetConfigs["68409e4b6dd92e5bcc2d678d4f2d6917076613a19f298fcaa782ab57c63adcfe"].measurementIds=[],widgetConfigs["68409e4b6dd92e5bcc2d678d4f2d6917076613a19f298fcaa782ab57c63adcfe"].hasGoogleTagTracking=!1,widgetConfigs["68409e4b6dd92e5bcc2d678d4f2d6917076613a19f298fcaa782ab57c63adcfe"].hasFusedeck=!1,window.addEventListener("message",(function(e){var t=e.data["od-widget-id"],i=e.data["od-widget-height"],d=e.data["od-widget-ios"];if(t&&t in widgetConfigs&&"68409e4b6dd92e5bcc2d678d4f2d6917076613a19f298fcaa782ab57c63adcfe"===t){var a=document.getElementById("od-widget-"+t);i&&(a.style.height=i+"px"),!0===d&&(a.style.width="100px",a.style["min-width"]="100%",a.scrolling="no");var g=e.data["od-tracking-configs"];void 0!==g&&(widgetConfigs[t].measurementIds=g);var o=e.data["od-has-google-tag-manager"];void 0!==o&&(widgetConfigs[t].hasGoogleTagTracking=o);var f=e.data["od-has-fusedeck"];void 0!==f&&(widgetConfigs[t].hasFusedeck=f);var n=e.data.GA4;if(widgetConfigs[t].hasGoogleTagTracking&&window.dataLayer&&n){var s=Object.keys(n.properties),r={event:n.name};s.forEach((function(e){r[e]=n.properties[e]})),dataLayer.push(r)}if(widgetConfigs[t].hasFusedeck&&window.fdData&&n){var s=Object.keys(n.properties),r={event:n.name};s.forEach((function(e){r[e]=n.properties[e]})),fdData.push(r)}if(n&&void 0!==window.gtag)for(var w=0;w<widgetConfigs[t].measurementIds.length;w++){var f=widgetConfigs[t].measurementIds[w],c=(s=Object.keys(n.properties),{send_to:f});s.forEach((function(e){c[e]=n.properties[e]})),gtag("event",n.name,c)}}})),window.addEventListener("load",(function(e){for(var t=document.querySelectorAll("iframe.od-widget"),i=0;i<t.length;i++){var d=t[i];d.dataset&&d.dataset.src&&(d.src=d.dataset.src)}}));</script><iframe class="od-widget" id="od-widget-68409e4b6dd92e5bcc2d678d4f2d6917076613a19f298fcaa782ab57c63adcfe" src="about:blank" data-src="hidden link" frameborder="0" style="width:100%;max-width:1190px;height:400px"></iframe>. I am attempting this on the page: hidden link.

Symptoms:
Instead of seeing the same iframe as on the page hidden link, I got an empty space.

Questions:
How can I ensure the iframe appears correctly in the translation?

September 15, 2025 at 2:40 pm #17402970

Marcel
Supporter

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

Timezone: Europe/Madrid (GMT+02:00)

Hi,

before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

You can deactivate the WPML editor for a specific page by following the steps described here: https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/
. This will allow you to manage the iframe code directly in Divi for the secondary language.

Best Regards
Marcel

September 18, 2025 at 7:31 am #17411862

romainO-2

Hello,

Sorry for the delay. I did not received any notification for your answer, while the option was well checked...

I have duplicated this page and activated the WordPress editor. The Iframe is displaying well : hidden link

But I do want to keep the advanced editor. How can I make this string stay the same ?

Here is the code I want exactly the same for all pages (pasted in a Divi code module):

<script>var widgetConfigs=widgetConfigs||{};widgetConfigs["68409e4b6dd92e5bcc2d678d4f2d6917076613a19f298fcaa782ab57c63adcfe"]={},widgetConfigs["68409e4b6dd92e5bcc2d678d4f2d6917076613a19f298fcaa782ab57c63adcfe"].measurementIds=[],widgetConfigs["68409e4b6dd92e5bcc2d678d4f2d6917076613a19f298fcaa782ab57c63adcfe"].hasGoogleTagTracking=!1,widgetConfigs["68409e4b6dd92e5bcc2d678d4f2d6917076613a19f298fcaa782ab57c63adcfe"].hasFusedeck=!1,window.addEventListener("message",(function(e){var t=e.data["od-widget-id"],i=e.data["od-widget-height"],d=e.data["od-widget-ios"];if(t&&t in widgetConfigs&&"68409e4b6dd92e5bcc2d678d4f2d6917076613a19f298fcaa782ab57c63adcfe"===t){var a=document.getElementById("od-widget-"+t);i&&(a.style.height=i+"px"),!0===d&&(a.style.width="100px",a.style["min-width"]="100%",a.scrolling="no");var g=e.data["od-tracking-configs"];void 0!==g&&(widgetConfigs[t].measurementIds=g);var o=e.data["od-has-google-tag-manager"];void 0!==o&&(widgetConfigs[t].hasGoogleTagTracking=o);var f=e.data["od-has-fusedeck"];void 0!==f&&(widgetConfigs[t].hasFusedeck=f);var n=e.data.GA4;if(widgetConfigs[t].hasGoogleTagTracking&&window.dataLayer&&n){var s=Object.keys(n.properties),r={event:n.name};s.forEach((function(e){r[e]=n.properties[e]})),dataLayer.push(r)}if(widgetConfigs[t].hasFusedeck&&window.fdData&&n){var s=Object.keys(n.properties),r={event:n.name};s.forEach((function(e){r[e]=n.properties[e]})),fdData.push(r)}if(n&&void 0!==window.gtag)for(var w=0;w<widgetConfigs[t].measurementIds.length;w++){var f=widgetConfigs[t].measurementIds[w],c=(s=Object.keys(n.properties),{send_to:f});s.forEach((function(e){c[e]=n.properties[e]})),gtag("event",n.name,c)}}})),window.addEventListener("load",(function(e){for(var t=document.querySelectorAll("iframe.od-widget"),i=0;i<t.length;i++){var d=t[i];d.dataset&&d.dataset.src&&(d.src=d.dataset.src)}}));</script><iframe class="od-widget" id="od-widget-68409e4b6dd92e5bcc2d678d4f2d6917076613a19f298fcaa782ab57c63adcfe" src="about:blank" data-src="hidden link" frameborder="0" style="width:100%;max-width:1190px;height:400px"></iframe>

Here is the only corresponding string appearing in the WPML editor : hidden link

Regards

September 18, 2025 at 7:55 am #17411996

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for your feedback.

The code will not appear in the translation editor, but it should be copied as-is into the translation.

Could you please upload a screenshot showing the entire process, including how you paste the code into the module? Also, please test this on a new page to check if the same issue occurs.

Additionally, please make sure that your parent theme is updated to the latest version.

September 18, 2025 at 8:15 am #17412066

romainO-2

Hello,

I have updated Divi.

Here are screenshots of each step.

New test page : hidden link

Capture d’écran 2025-09-18 à 10.13.14.png
Capture d’écran 2025-09-18 à 10.10.17.png
Capture d’écran 2025-09-18 à 10.09.04.png
September 18, 2025 at 1:01 pm #17413416

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for your feedback.

I need to request temporary access (wp-admin and FTP) to your site—preferably to a test site where the problem has been replicated if possible—in order to be of better help. When you log in to leave your next reply, you will find the needed fields below the comment area. The information you will enter is private, meaning only you and I can see and access it.