This thread is resolved. Here is a description of the problem and solution.
Problem:
You are trying to locate the hreflang tags in your sitemap using WPML, WPML SEO, and Rank Math SEO, but cannot find them despite having checked the 'as early as possible' option in WPML -> SEO options -> Display alternative languages in the HEAD section.
Solution:
Hreflang tags will not appear in your sitemap but should be visible at the top of your page source due to your current settings. You can verify their presence by viewing the source of your page. For example, you might see entries like:
<link rel="alternate" hreflang="sv" href="https://www.yoursite.com/sv/" />
<link rel="alternate" hreflang="en" href="https://www.yoursite.com/" />
<link rel="alternate" hreflang="x-default" href="https://www.yoursite.com/" />
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your specific case, we recommend opening a new support ticket. Additionally, we highly recommend 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 3 voices.
Last updated by 6 months, 3 weeks ago.
Assisted by: Bobby.