Skip Navigation

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

Problem:
The client wants to remove the hreflang tag from specific non-indexable pages, such as the privacy policy page.
Solution:
We recommend disabling hreflang tags for all pages and languages by going to WPML > Languages > SEO Options. Currently, it is not possible to remove hreflang tags from specific pages using WPML settings; this action would remove them from all pages. Instead, for non-indexable pages, we suggest marking them as no-index, which can be done with the Yoast SEO plugin.

Please note that this solution might be outdated or not applicable to your case. If so, we encourage you to open a new support ticket for personalized assistance. We also 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.

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 2 voices.

Last updated by Bobby 3 years, 1 month ago.

Assisted by: Bobby.

Author Posts
April 27, 2022 at 1:54 pm #11106253

nikolayE

Hello,

I want to remove the hreflang tag from specific pages, because they are non-indexable.

For example - hidden link

How to do it?

April 27, 2022 at 8:16 pm #11108651

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hello,

By default in WPML, you can disable hreflang tags for all pages and languages in
WPML > Languages > SEO Options.

At the moment it is not possible to remove specific pages only, this would remove all of them using the option found within WPML->Languages.

For these pages you could mark them as no-index which can be done with Yoast SEO for example.

Screen Shot 2022-04-27 at 1.14.27 PM.png