Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are developing a site and are trying to translate button text into other languages using WPML, but are unable to change the button text in other languages.
Solution:
We found that the text was coming from a button of an ACF field group. The field group translation method selected was 'Same field across languages' but you are manually translating the page. To resolve this, go to ACF > Field Groups and search for the group containing that button: 'Media with Content Block'. Edit it and select the 'Expert' mode. Then find the button field and mark it as 'translate'.
After that, edit the Spanish translation of the page and you should be able to translate the button 'View Products' to 'Ver Productos'. Check the front end to see if it displays correctly.

If this solution does not apply to your case, or if it seems outdated, 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. If issues persist, please open a new support ticket.

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.

This topic contains 3 replies, has 2 voices.

Last updated by Mateus Getulio 7 months ago.

Assisted by: Mateus Getulio.

Author Posts
July 15, 2024 at 6:33 pm #15956244

jordanP-2

Background of the issue:
We are developing a site and are trying to translate button text into other languages using WPML. We have followed the WPML documentation.

Symptoms:
We are unable to change the button text in other languages.

Questions:
Why can't we translate the button text into other languages?
How can we change the button text in other languages?

July 15, 2024 at 9:00 pm #15956814

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

Can you please tell me the location of the button?

Please go to WPML -> String Translation and enable the option "Look for strings while pages are rendered", then visit the page in which the button is located and go back to the String Translation.

Refresh the page and search for the button text to see if you'll be able to find it now. (Please don't forget to uncheck the option "Look for strings while pages are rendered" once you're done).

Translate the string and see if it gets the issue fixed.

If it doesn't work, I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

Privacy and Security Policy

We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

**IMPORTANT**

- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link

Please, let me know if you need any additional details. Have a nice day.

July 16, 2024 at 1:23 pm #15960790

jordanP-2

we are facing issue on this page
for the button "View Product".

hidden link

unnamed.png
July 16, 2024 at 6:43 pm #15962282

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

I checked it and that text was coming from a button of an ACF field group. The field group translation method selected was 'Same field across languages' but you are manually translating the page Copper Pricing.

To fix it I went to ACF > Field Groups and searched for the group containing that button: 'Media with Content Block'. I edited it and selected the 'Expert' mode. Then I found the button field and marked it as 'translate'.

After that I edited the Spanish translation of Copper Pricing and I was able to translate the button 'View Products' to 'Ver Productos'. When I check the front end, it is displaying correctly now.

Can you please review it?

Best,
Mateus