Background of the issue:
I am trying to use the Gumlet service to embed a video link on a page using the Divi builder. I use the Code module to add the code generated by Gumlet. The video displays correctly in the default language, but not in the English version. When I manually add the code in the English version, it works until I translate the page. I noticed that WPML adds some comments tags in the translation editor, which might be causing the issue. Link to a page where the issue can be seen: hidden link
Symptoms:
The video is not displayed in the English version of the page, showing just an empty block. Manually adding the code works until the page is translated.
Questions:
Why does the video not display in the English version of the page?
Do WPML comment tags in the translation editor affect the video display?
As far I understand, code should not be translated via WPML editor, since it does show there it breaks the code on saving translation so that is why it does not work.
I created a minimal installation of WordPress, WPML, and all necessary WPML add-ons, and themes.
You can access the WordPress dashboard using the link below:
- hidden link
Please try to replicate the issue with a simple example page.
This will help us to report the probable issue to the compatibility team and solve the possible problem faster.
I checked and it seems your code had some space and line breaks inside it so it caused an issue with translation. I have removed it, so your code looks like this: