This thread is resolved. Here is a description of the problem and solution.
Problem: The client is unable to translate certain buttons and text on their homepage and privacy policy page using WPML. They can only edit one of the three buttons in the first section of the homepage, and the first sentence displays incorrectly in live mode. Additionally, the privacy policy page does not show in English by default when browsing the site in English mode. Solution: We recommend the following steps to address the issues: 1. Navigate to WPML > String Translation and enable the checkbox labeled "Look for strings while pages are rendered." Then, visit the front end of the page where the string is displayed, and return to WPML > String Translation to search for the string. 2. If the strings are not found in WPML > String Translation, they might be included as admin text strings. You can find and translate these admin text strings by following the guide at Translate Admin and Settings Strings and Related Documentation. 3. If the page builder used is not a common one, or if it's enabled by a custom plugin or theme that might not be fully compatible with WPML, please contact the support team for that product to ensure compatibility. Additionally, you may need to register custom blocks as translatable as shown in Make Custom Gutenberg Blocks Translatable.
If these steps do not resolve your issue or if the solution 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. Please feel free to open a new support ticket for further assistance 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.
Background of the issue:
I am trying to translate elements on my website hidden link using WPML. I have encountered several issues with translating buttons and text on my homepage and privacy policy page.
Symptoms:
I can only edit one of the three buttons in the first section of my homepage, and I can't find the buttons in 'strings'. The first sentence is displayed correctly in the translation section but appears half English, half Dutch in live mode. My privacy policy page does not initially show in English when browsing the site in English mode.
Questions:
How can I edit all three buttons on my homepage using WPML?
Why is the first sentence displaying incorrectly in live mode?
How can I ensure my (privacy policy) page displays in English by default when surfing through my website?
Certain strings may require a specific procedure to be located and translated.
Moreover, the proper method for translating strings greatly depends on how they have been incorporated into the theme/plugin.
IMPORTANT: Sometimes, there are even duplicates of the same string and only one of them is the correct one that needs to be translated.
Also, sometimes, simply removing the string (checking the box and removing it) and then re-registering it again by scanning for it (one of the methods below) and re-translating it resolves the issue.
Please attempt both methods and check if either of them resolves the issue.
Method 1:
Navigate to WPML > String Translation, and at the bottom of the page, you will find a checkbox labeled "Look for strings while pages are rendered." You can enable (check) that option, then go to the front end to a page where the string is displayed, and afterward return to WPML > String Translation to search for that string and see if it now appears.
Method 2:
If you can't locate them within WPML > String Translation, they might be included as admin text strings.
PS: There is also something important to mention; if the strings come from outside of WordPress, it would be impossible for WPML to see or translate them.
Can you please let me know if the issue mentioned initially in the ticket was resolved (the ones with the buttons)?
Also, regarding the other issues you mentioned, please note that, per our Support Policy, we can handle only one issue/topic per ticket.
Continuing with one issue per ticket helps supporters focus on one problem at once and enables other users to find solutions to their questions faster.
If the button-related issue is fixed, can you please mark this ticket as resolved and open a new ticket for any new issue you encounter (one ticket per issue) so we can properly focus on and tackle each one?
Thank you very much for your understanding and cooperation.
I followed the steps, but still I can't seem to find certain strings:
1. I enabled checkbox labeled "Look for strings while pages are rendered." then went to the front end to a page where the string is displayed, and afterward returned to WPML > String Translation to search for that string and see if it now appeared
That didn't work for me so after I followed method 2.
Method 2:
Finding and translating admin text strings. Also that didn't work for me.
I inspected a button at a page of the string I couldn't find (the buttons at my homepage suddenly seem to be translated now) as shown at the attachment. But it doesn't show up at WPML > String Translation.
After reviewing the screenshot you attached in your last reply, I cannot determine which page builder the page is using. It doesn’t appear to be a popular one, like Elementor. This suggests that the page builder —either enabled by a custom plugin or through the current theme— might not be fully compatible with WPML (or might need a specific approach to help WPML see those blocks).
Sometimes, plugins or themes use specific blocks that WPML does not recognize right away.
I’m not sure if the theme includes the page builder or if you are using a specific plugin to enable it. Please reach out to the support team for that product and ask if it is compatible with WPML. They might offer a quick solution that allows WPML to recognize those specific buttons.