This thread is resolved. Here is a description of the problem and solution.
Problem:
Client needed to make the Yoast SEO Canonical URL field translatable in the Advanced Translation Editor to ensure that the correct canonical URLs are used for different language versions of a page.
Solution:
We recommend registering the canonical URL field for translation by adding custom XML configuration in WPML. Here are the steps to follow:
1. Navigate to WPML > Settings in your WordPress dashboard.
2. Scroll down to the Custom XML Configuration section.
3. Insert the following code:
<wpml-config> <custom-fields> <custom-field action="translate">_yoast_wpseo_canonical</custom-field> </custom-fields> </wpml-config>
This will allow the Canonical URL field to be translatable within the Advanced Translation Editor. For more information on custom XML configurations, please refer to our documentation on language configuration files.
If you need to quickly edit the canonical URL, you can do so by:
1. Going to Pages and editing the page in question.
2. Using the language switcher at the top header to switch to the translation.
3. Manually editing the Canonical URL field (disregard any warnings).
If this solution does not seem relevant to your situation, please feel free to open a new support ticket in our support forum.
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 1 year, 5 months ago.
Assisted by: Bobby.