This thread is resolved. Here is a description of the problem and solution.
Problem:
You are experiencing issues with how the WPML link scan works differently between the Enfold and Kadence themes. Specifically, you've noticed that with Kadence, the scan seems to refer to page links rather than page IDs, unlike with Enfold.
Solution:
The way WPML processes links depends on whether the links contain an "href" attribute. It uses regular expressions to match these links to the current rewrite rules of WordPress and then processes them accordingly. The system can handle both full URLs and partial URLs. Primarily, it attempts to identify the post ID and processes it. If a link includes a page ID, WPML can adjust this ID to the corresponding translated ID through specific hooks. For a deeper understanding or to debug issues specific to your theme, you should review the code in
/wp-content/plugins/sitepress-multilingual-cms/inc/absolute-links/absolute-links.class.php
under the function
\AbsoluteLinks::_process_generic_text
.
If this solution does not resolve your issue or seems outdated, we recommend opening a new support ticket. We also advise checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at WPML 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 2 replies, has 0 voices.
Last updated by 1 month, 4 weeks ago.
Assisted by: Itamar.