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:
The general recommendation is to format the code properly without unnecessary extra spaces. As you can see in the next example:
- hidden link
I am also escalating this to our 2nd tier for 2nd opinion if this can be improved or avoided somehow from our side.
In the meantime, I suggest you follow the workaround suggested.
I will update you when I have some news.
Regards,
Drazen
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.