This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing an issue where HTML code within an Elementor Pro HTML widget was appearing on the translation page, and the client was being forced to translate it. Solution: We recommended moving the code from the Elementor HTML widget to the
functions.php
file of the client's Child Theme. We provided the following code to correctly add JavaScript to the theme, which prevents the Advanced Translation Editor (ATE) from confusing HTML and script code:
After applying this change, the English version should display correctly and execute the JavaScript code without it appearing in the translation editor.
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open a new support ticket in our 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.
Hi
I'm using Elementor Pro and used html widget to use some code. I don´t need to translate it but it is showing on translation page and it is forcing me to translate it. How can solve this?
Site is under development.
Thank you
You can simply click the COPY button in the screenshot you mentioned (check my screenshot) and save the translation when it is 100% complete and it should work ok.
Thank you, I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.
Make sure you set the next reply as private.
ALso please give us the link to the page that the issue is happening so we can check.
Also, if you could help me in another issue I'll apreciate it. I have a custom type (Tours) created with ACF and it has the featured image. The translations are working fine. When the featured image is added, it appears in the translated pages. But if the featured image is changed in the meantime, it is not updated in the translated pages.
E.g. hidden link on this tour I have updated the featured image that appears on the banner, but the EN and ES versions is still showing the old image, as you can see at hidden link and hidden link. How do I get them to update?
Note that there are some images that have been changed to be different depending on the page, such as the word cloud that appears on the homepage.
Thank You!
New threads created by Christopher Amirian and linked to this one are listed below:
This is how to correctly add a Javascript code to the Theme to avoid confusing ATE with HTML and Script code.
Now if you check the English version it shows correctly and performs the Javascript code.
We Answer one question per ticket to keep things organized and serve you better and ti is fair to our other customers. I will create a new ticket for the second question.