Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

This topic contains 1 reply, has 2 voices.

Last updated by Prosenjit Barman 3 months, 3 weeks ago.

Assisted by: Prosenjit Barman.

Author Posts
August 20, 2024 at 9:48 am #16086361

matejM-6

Background of the issue:
After database migration, some

on translated pages got injected with this code:

. The site I need help with is hidden link.

Symptoms:
Injected code in

tags on translated pages.

Questions:
How can I remove the injected code from the

tags on translated pages?

August 21, 2024 at 6:35 am #16088759

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
Thanks for contacting WPML Support.

I understand the issue you're facing. These classes and tags usually get inserted if the translation was added by copying and pasting from other sources or by using the WYSIWYG field available in the Classic Translation Editor.

Since you're using the Classic Translation Editor, please try the following steps to see if they help in removing the HTML tags and classes:

1. Open the default post in the WordPress Editor.
2. Click on the Pencil icon in the Language Meta section.
3. When the translation editor loads, find the translated paragraph that contains the tags and classes.
4. Switch to the Text view, as shown in this screenshot: hidden link.
5. If the classes appear there, remove them along with the tags, and keep only the Paragraph tag.

If you prefer, you can switch to the Advanced Translation Editor by navigating to WPML > Settings and then translating the page. This method will ensure that only the classes and tags present in the default language are retained in the translation.

Please let me know if the steps above help or if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

The topic ‘[Closed] After database migration’ is closed to new replies.