[Resolved] class attributed is not copied to translation
This thread is resolved. Here is a description of the problem and solution.
Problem: The client reported that the 'underlined-link' class attribute present in the English version of a webpage was missing in the translated Hungarian version, despite attempts to re-translate after making changes to the original. Solution: We recommended that the client check the WPML and Bricks settings on their site against those on a clean installation where the issue was not replicated. We provided a sandbox link for reference. The client was advised to create a test page, translate it, and check if the issue persists. If the problem is still reproducible, we asked the client to inform us on how to replicate it so we could further investigate with our compatibility team.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/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 at WPML 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 have an English original page: hidden link
You can see that links in the text has a class="underlined-link" attributes.
if you check the translated Hungarian version: hidden link
This attribute is missing.
I've alread tried to change a little in the English version then start a new translation job and complete translation. Did not work.
Please help!
Zsolt
Non-visual elements like HTML attributes are by default not translated automatically.
You will need to edit the translation manually in this case, search for the attribute inside the text field on the top left of the Advanced Translation Editor (ATE), and translate it.
If the translation is marked as completed (Pencil icon) then please click the icon and the ATE will open.
If you see instead a review symbol (Eye icon) then it means that you will need to access the review for the content. While on the review screen click "Edit translation" inside the top bar, to open ATE.
Hi,
Unfortunatelly, this is not our case.
Let's do it step by step. Focus on class attribute:
- In English version there is a html markup in Rich Text includes class="underlined-link"
- ATE doesn't include class attribute, so I cannot translate.
- In Hungarian (translated) version the HTML is not include class="underlined-link".
In Addition: there are approximately 20 pages where class attribute is used in <a> element, and in case of 18 pages the class attribute EXISTS on the translated page! Only there are two exception, where <a> element is not copied to Hungarian version.
It is seems as a bug, is it? But how can i resolve this. I can add access to a staging, if it helps.
Zsolt
I'm Osama from WPML forums support. I'll be glad to help you today.
I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP) Preferably to a test site where the problem has been replicated.
Your answer will be private, meaning only you and I can access it.
❌ Please backup your database and website ❌
✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.
✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.
Thanks for the access details. I tried to replicate the issue on a clean installation. (hidden link)
The class is copied correctly. Kindly check this page in both languages. (hidden link)
Please check the sandbox's WPML and Bricks settings and change them to match your site. After that, please create a test page and translate it to replicate the issue.
If the issue is reproducible, please let me know how to reproduce it so I can check it and consult our compatibility team.
Hi Osama,
You're right. It works in 99/100 cases. We are investigating the 1/100 of cases.
Our site shouldnt' be cloned by our security policy. We should find another solution. Compatibility team may help anyway.
Regards, Zsolt
Sorry, I think you did not understand my Issue. I have probem with only one page. If i create the whole page from the beggining, It will work fine. But this is a bug, and I wanted to see an easier solution for this.