Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:

You are trying to resolve an issue where hreflang tags have disappeared from the source code on your website.

Solution:

If you're experiencing this issue, we recommend you try the following steps:

1. Navigate to WPML >> Languages >> SEO Options.
2. Ensure that the option 'Display alternative languages in the HEAD section' is enabled.
3. If it was disabled, enable it and then clear all types of caches including plugin, server, browser, and CDN caches.
4. After performing these steps, check if the hreflang tags are restored on your website.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. 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. If the issue persists, 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.

This topic contains 1 reply, has 0 voices.

Last updated by nickS-28 1 week ago.

Assisted by: Bigul.

Author Posts
July 31, 2025 at 11:19 pm #17286828

nickS-28

Background of the issue:
I am trying to resolve an issue where hreflang tags have disappeared from the source code on my website. You can see the issue on this page: hidden link

Symptoms:
The hreflang tags that were expected to be in the source code are missing.

Questions:
Why have the hreflang tags disappeared from the source code?
How can I restore the hreflang tags on my website?

August 1, 2025 at 8:49 am #17287457

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Welcome to the WPML support forum. I will do my best to assist you in resolving the issue.

We hope the hreflang tags were listed as expected in the past. To troubleshoot this, please follow these steps:

- Go to WPML >> Languages >> SEO Options
- Make sure the option “Display alternative languages in the HEAD section” is enabled
- If it was disabled, enable it and then clear all types of caches (plugin, server, browser, CDN)
- Finally, check whether the issue still exists

--
Thanks!

Bigul

August 1, 2025 at 9:17 pm #17289508

nickS-28

not sure if it is a bug or a new feature? why did it have to be toggled on? seems like maybe an update changed the setting. it was never changed manually