Skip to content Skip to sidebar

This topic contains 0 reply, has 1 voice.

Last updated by szymonZ-2 2 months, 2 weeks ago.

Assisted by: Waqas Bin Hasan.

Author Posts
July 11, 2025 at 9:24 am #17226904

szymonZ-2

Background of the issue:
I am trying to translate a page with WPML. The issue can be seen on this page: hidden link. I expected to see the original JavaScript code: headings.forEach(heading => { // ... });

Symptoms:
After translation by WPML, the JavaScript code appears as: headings.forEach(heading => { // ... }); The => operator is replaced with =>, causing the code to break.

Questions:
Why is the JavaScript code being altered during translation?
How can I prevent WPML from replacing symbols in my JavaScript code?

The topic ‘[Closed] Gear page javascript code not working after translating page using WPML.’ is closed to new replies.