Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client needs to prevent WPML from translating a Divi code module on their page, as it breaks the code and displays it as text on the front end.
Solution:
If you're experiencing this issue, we recommend you try the following steps:
1. Modify the code slightly by adding some space characters, then save the page and update the translation. For example, change:

$(document).ready(function(){

to

$( document ).ready( function(){

2. Navigate to WPML > Translation Management, select the page, use the automatic translation, and override the existing translation. The script code should be hidden by default and will not be translated automatically.

If this solution doesn't look relevant, please open a new support ticket.

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.

Tagged: 

This topic contains 1 replies, has 2 voices.

Last updated by Long Nguyen 1 year, 7 months ago.

Assisted by: Long Nguyen.

Author Posts
November 17, 2023 at 5:24 pm #14865511

Jan Himmighofen

how can I prevent WPML from translating a Divi code module on my page? It has translated it in the translation editor, see screenshot. This breaks the code on the page and inserts it as text so it's visible in the front end.

November 20, 2023 at 7:21 am #14873353

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Jan,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

To clear the translation memory of the script code, there are some ways:

1. You can just modify the code a little bit, such as adding some space characters to the code > Save the page > Update the translation. For example:

$(document).ready(function(){

change it to

$( document ).ready( function(){

2. Go to WPML > Translation Management > Select the page > Use the automatic translation and override the existing translation. The script code is hidden by default and it won't be translated automatically. Please check the screenshot attached.

Look forward to your reply.
Thanks

Translation Management ‹ WPML Testing — WordPress 2023-11-20 14-18-35.png
November 20, 2023 at 9:09 am #14874247

Jan Himmighofen

Hi Long,

That worked! Thank you.

Jan