This thread is resolved. Here is a description of the problem and solution.
Problem:
Translate link targets not working. still link to en
Solution:
By default, the Advanced Translation Editor hides URLs from translated material. To translate URLs, you first need to find them using the search. This same method applies to other hidden elements such as shortcodes and custom HTML attributes.
Relevant Documentation:
- https://wpml.org/faq/how-to-translate-urls-shortcodes-and-html-attributes-using-the-advanced-translation-editor/
- https://wpml.org/announcements/2020/02/translating-links-with-advanced-translation-editor/
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: Documentation request
This topic contains 11 replies, has 2 voices.
Last updated by rockg 1 year, 8 months ago.
Assisted by: Waqas Bin Hasan.
Author | Posts |
---|---|
March 31, 2023 at 8:58 am #13373663 | |
rockg |
Tell us what you are trying to do? Is there any documentation that you are following? Is there a similar example that we can see? What is the link to your site? |
March 31, 2023 at 8:00 pm #13378673 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you for contacting the support. I just checked your website (hidden link) and can see the links pointing to the Japanese pages. Is there any specific page where this is happening? Can you explain the issue in more detail, providing the exact URL(s), screenshots and/or a screen-recording, where it is happening? Please let me know and I'll try my best to further assist you on the matter. Regards. |
April 3, 2023 at 2:14 am #13386101 | |
rockg |
Translated into Japanese, anchor text links, still pointing to the English page. |
April 3, 2023 at 6:04 pm #13393281 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you for the updates. Would you kindly follow the steps mentioned below? - Go to "WordPress Dashboard > WPML > Settings > Translate Link Targets". After that kindly do as follows: - Go to your Dashboard > Pages. Please let me know if this helps resolve the issue. Or I'll try my best to further assist you on the matter. Regards. |
April 4, 2023 at 2:33 am #13395397 | |
rockg |
Hi Translate Link Targets:0 link changed. After steps. I've done it. Still not working. Looking forward to hearing from you. |
April 4, 2023 at 4:17 pm #13402345 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you for trying that. Can you try these troubleshooting options mentioned in this guide https://wpml.org/documentation/support/wpml-troubleshooting-options/ ? Apply the commands from the table one by one and wait for one to finish. And check for the issue before moving to the next. IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try these on a staging/dev site first, so your live website isn't compromised. If this doesn't work, may I ask for admin access to your website to check the issue in detail? You can create a separate admin user for this purpose, which can be deleted afterwards. Also provide following detail to investigate/observe the issue: - detailed steps to reproduce the issue Remember to take full backup of your website and database before proceeding. However, a staging/test site is highly recommended, because I may need to try some changes/fixes on the site, which may cause conflicts with the live site otherwise. Please confirm it in your next reply or let me know if you do not agree with the mentioned. I've set your next reply as private to share this information safely. IMPORTANT: If you don't see the section for providing access information, do not write in the message box or the information may appear as public. See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security. Before continuing on the site, I'll also need your confirmation and approval on each of the followings: 1) Is this a Live/Production or Staging/Dev site? Please confirm, thanks. |
April 7, 2023 at 3:27 pm #13428223 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you for the admin access. Also provide following detail to investigate/observe the issue: - detailed steps to reproduce the issue Before continuing on the site, I'll also need your confirmation and approval on each of the followings: 1) Is this a Live/Production or Staging/Dev site? Please confirm, thanks. |
April 10, 2023 at 2:47 am #13435249 | |
rockg |
Hi Translated into Japanese, anchor text links, still pointing to the English page. admin: hidden link frontend: hidden link 1) Is this a Live/Production or Staging/Dev site? Looking forward to hearing from you Thanks & Best Regards |
April 10, 2023 at 6:14 pm #13439441 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you for the details and the confirmations. I am working on this and 'll get back to you as soon as I find something or have a solution. Regards. |
April 11, 2023 at 6:11 am #13441901 | |
rockg |
OK. Thank you. Looking forward to hearing from you Thanks & Best Regards |
April 11, 2023 at 5:57 pm #13449145 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you for your patience and cooperation. I was able to fix the links. Actually this is not an issue but a matter of understanding. You needed to translate the links when updating/editing translation, see attached image. By default, the Advanced Translation Editor hides URLs from translated material. To translate URLs, you first need to find them using the search. This same method applies to other hidden elements such as shortcodes and custom HTML attributes. See following guides for details: - https://wpml.org/faq/how-to-translate-urls-shortcodes-and-html-attributes-using-the-advanced-translation-editor/ Please check hidden link and confirm. Regards. |
April 12, 2023 at 9:57 am #13454189 | |
rockg |
Thanks, when I searched for "http" before, for some reason the search didn't show up. I just tried it and it was added successfully. My issue is resolved now. Thank you so much. |