[Resolved] Not able to find and translate string in header
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was unable to find and translate a specific string in the header of their website using WPML. Solution: 1. To make the custom Marquee Elementor element compatible with the WPML Translation Editor, we added the following XML configuration in WPML >> Settings > Custom XML Configuration section:
After this, we made a small change in the default language header template and translated the header in the secondary language. This made the marquee element content available for translation. 2. For translating the 'Donation' text, we followed these steps: - Navigated to WPML >> String Translation page. - Clicked on the 'Translate texts in the admin screen' link at the bottom of the page. - Searched for the string and enabled its translation. - Assigned the correct source language and added the translation of that string. - Cleared the cache to reflect the updated translation. For further details, you can refer to the following documentation links:
If this solution does not resolve your issue or seems outdated, we 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. If further assistance is needed, please 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.
Thank you for contacting WPML Support. I’ve visited your site and it seems this text is added using the Elementor page builder. Could you please follow the below steps and see if this resolves the issue:
Thanks for providing more details. Sure I would be happy to help. To take a closer look at this issue, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue.
I’ve enabled a private input box for your next reply.
=== Please backup your database and website ===
✙ I would additionally need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is really important.
I am Off Fridays & Saturdays (my weekend) so I will be able to work on this first thing on Sunday.
Sorry for the delay, I was off during the weekend (Friday-Saturday). Thanks for providing the login details. I’m debugging this issue on your site and will get back with an update soon.
In WPML >> Settings > Custom XML Configuration section and made a small change in the default language header template and translated the header in secondary language and the marquee element content was available for translation as you can see in the attached screenshots.
2. For translating the Donation text, I’ve followed the below steps:
2.1. Went to WPML >> String Translation page.
2.2. Click on the Translate texts in the admin screen link at the bottom of the page.
2.3. Searched for the string.
2.4. Enabled it’s translation as you can see in the attached screenshot.
2.5. Went to WPML >> String Translation page, assigned the correct source language, and added the translation of that string.
2.6. Cleared the cache and it seems to show the correct translation as you can see in the attached screenshots.
You should be able to update the translation from here: hidden link
1. But now the button Donate is not working when you click it and pop up window is not visible? - Please see the srceenshoot in attach.
2. Can I manage the flags of the language to be visible just one flag? What I mean is that when the web is in croatian language you can see only english flag and opposite.
Is there an option for that? - Please see the srceenshoot in attach.
Thanks
New threads created by Noman and linked to this one are listed below:
1. I've checked the issue with the Donate button and noticed that the popup isn't working even in the site's default language. Could you please let me know if this issue started occurring after the recent translation changes?
If the problem appeared after my updates, could you please restore the backup? This will help me review how the popup was functioning previously and identify any conflicts.
Thank you for restoring the backup. I see that the Donate button is now working on the English version, but the issue persists on the Croatian(default) language. Since the problem is still present even after the restoration, it appears to be a separate issue from the recent changes.