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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 5 replies, has 3 voices.

Last updated by Mateus Getulio 5 months, 2 weeks ago.

Assisted by: Mateus Getulio.

Author Posts
July 19, 2024 at 10:30 am #15977430

ngmcb

<b>Background of the issue: </b>
I am facing an issue where the button target URLs on my translated pages and posts are not updating correctly. Although the content translates properly, the buttons still link to the English versions of the pages and posts. This affects user experience as they are redirected to English content instead of the translated versions.

What I can see is same Page, Post is linked in buttons in different. languages (ScreenShot attached). I checked in the WPML setting and found that one of the option in custom Fields translation is set to copy ("target") (Screenshot attached). If this is the issue, then can we update it now or if there is any other issue, please help.

<b>Symptoms: </b>
Button target URLs are not translated and still link to the English versions of the pages and posts.

<b>Questions: </b>
How can I ensure that button target URLs are translated correctly in WPML?

French_Page_Button.png
WPML_setting.png
July 19, 2024 at 10:49 am #15977569

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hi,

Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with the first debugging steps and try to help with the issue quickly.

Yes, if you wish to translate that field content it should be set to Translate. Please check next guide with explanation what each translation settings means and what is recommended:

- https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/recommended-custom-fields-translation-preferences-for-acf-and-wpml/

Regards,
Drazen

July 19, 2024 at 11:18 am #15977765

ngmcb

Hi Drazen,

Thank you for the information. If that is the issue, how we fix it now and update all the existing translated pages, posts and others.

July 19, 2024 at 4:43 pm #15979408

Mateus Getulio
Supporter

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

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

Hello there,

Can you please edit the original page containing the button and check how the link is configured, is it using the relative path or the full path to the URL?

It is possible that by the time the page containing the button was translated, the page where the URL linked to didn't have a translation yet, the way the links translation works is that by the time you translate or edit the translation of a page containing an URL, if WPML finds a translation for the page of the link, it automatically adjusts it to point to the secondary language.

You can try to go to WPML -> Settings -> Translate Link Targets and click on Scan now to see if the links get adjusted.

If it doesn't work, please try to edit the page in the main language and make a minor modification to it, like adding an empty space for example.

After that, please update the translation and save it as it is, this should fix the link in the secondary language.

Thank you, please let us know how that goes.
Mateus

July 24, 2024 at 1:33 pm #15998765

ngmcb

Hi,

I have tried both the approaches:

"
You can try to go to WPML -> Settings -> Translate Link Targets and click on Scan now to see if the links get adjusted.

If it doesn't work, please try to edit the page in the main language and make a minor modification to it, like adding an empty space for example.
"

Both of the approaches didn't work. We have more than 2000 posts, pages, etc. So, updating all these pages manually will not be an optimal way, can you please help us with any other working approach.

Also, we are facing one issue, whenever we are editing any page in the main language, we have to manually update the most of the translations for all other languages by completing the translation flow.

July 24, 2024 at 2:21 pm #15998948

Mateus Getulio
Supporter

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

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

Hello,

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.

The topic ‘[Closed] Button target URL is not translated although other content is translated.’ is closed to new replies.