Skip to content Skip to sidebar

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

Problem:
The client needed to update the primary English content on their website, which used SiteOrigin's button widget and image widget. After running the auto-translation to Thai, the links for buttons and images on Thai pages were incorrectly changed to include /th/ and did not link to their respective alternate pages.

Solution:
We explained that the page builder relies on the post ID to identify links, and therefore, the client needs to manually inform WPML that the translated page uses a different post ID for the link to ensure it redirects to the correct location. This process cannot be automated. The client only needs to make the change once on the same page, but if translating from a new page, the adjustment must be made again. We provided step-by-step instructions:

  1. Translate the contact page and record the page IDs for both the original and translated contact pages.
  2. Edit the homepage and translate it using the Advanced Translation Editor.
  3. Locate the original post ID in the translation editor and replace it with the translated post ID.

If these steps do not resolve your issue or if the solution seems outdated or irrelevant to your case, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, 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.

Tagged: 

This topic contains 8 replies, has 2 voices.

Last updated by Kor 1 year, 3 months ago.

Assisted by: Kor.

Author Posts
April 27, 2024 at 11:50 am #15572794

myoW

Update the primary English content on my website. Buttons and images are displayed using SiteOrigin's button widget and image widget.

When the auto-translation to Thai has run, the links for buttons and images on Thai pages are changed to /th/. They should be linking to their respective alternate pages.

Link to a page where the issue can be seen:
hidden link (check second CTA button and services image links under)

1.png
2.png
3.png
4.png
April 29, 2024 at 1:17 am #15574504

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Hello,

Thank you for contacting us. Upon reviewing your screenshot, I believe I understand the issue. It appears that you'll need to translate the post ID within the destination folder for it to function properly.

However, I'm uncertain about the setup, and I'll need to carefully examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

April 29, 2024 at 5:43 pm #15578497

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

This is what I've done to fix the link issue hidden link . Could you check and see if you understand I'm doing over there?

April 30, 2024 at 5:58 am #15579262

myoW

I don't understand; can you explain? All I see is manually linking to the desired page by editing the Thai page manually. What I want is automatic linking to the correct page. Otherwise, I would have to edit Thai pages every time I modified English pages. That's not what I want.

April 30, 2024 at 10:29 am #15580791

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your response.

Regrettably, the page builder relies on the post ID to identify the links. Therefore, you'll need to manually inform WPML that the translated page uses a different post ID for the link, ensuring it redirects to the correct location. This process cannot be automatically corrected.

April 30, 2024 at 11:27 am #15581001

myoW

Do I need to update the post ID every time automatic translation runs, or is it a one-time job?

April 30, 2024 at 3:16 pm #15581975

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your response.

You only need to make the change once on the same page. However, if you're translating it from a new page, then you'll need to manually adjust it again.

May 1, 2024 at 6:40 am #15583159

myoW

Ok, can you please write down the exact steps for me because you are going too much back and forth in the recorded video? I will give it a try after that.

May 2, 2024 at 6:38 pm #15588807

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your response.

I regret the delays and apologize for the late reply. Additionally, I apologize for any confusion regarding my screen recording.

To clarify the steps for translating the contact button on your homepage at hidden link, please follow these instructions:

1. Begin by translating the contact page at hidden link .

2. Record the page IDs for both the translated contact pages:
- English ID 3143: hidden link

- Thai ID 12475: hidden link

3. Proceed to edit the homepage at hidden link .

4. Translate the homepage using the Advanced Translation Editor.

5. Locate post:3143 and translate it to post:12475 as shown in the attached screenshot.

I hope these instructions are clear. Please let me know if you encounter any difficulties.

Screenshot_8.png
May 3, 2024 at 1:10 pm #15591492

myoW

Yes, what I really need starts from step 4 but in the recorded video, it was confusing. Thanks for your support. You can close the ticket now.