Background of the issue:
I want to add a different embed script code for different languages on my WordPress site using WPML. I am trying to use the following script: <script charset="utf-8" type="text/javascript" src="//js-eu1.hsforms.net/forms/embed/v2.js"></script><script>hbspt.forms.create({portalId: "145238364",formId: "24fc2f09-1b52-4c6b-a3b7-369b657e6287",region: "eu1"});</script>. The issue can be seen on this page: hidden link.
Symptoms:
The script is not showing in the translation 'ATE'. I expected to see the option of adding the script to different languages.
Questions:
How can I add a different embed script code for different languages?
Why is the script not showing in the translation 'ATE'?
While you wait for my colleague to take over the ticket, let me try to help you with the issue quickly.
It is not expected to translate custom code via the WPML editor, nor to add custom code in such a way. But there are a few ways you can achieve what you wish:
1) You can disable the WPML editor and translate your page manually, and add different code: