[Resolved] Linking to home page even though translation exists
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:
Translate the contact page and record the page IDs for both the original and translated contact pages.
Edit the homepage and translate it using the Advanced Translation Editor.
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.
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)
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.
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.
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.
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.
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.