Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Zagreb (GMT+02:00)

This topic contains 1 reply, has 2 voices.

Last updated by Bruno Kos 1 year, 4 months ago.

Assisted by: Bruno Kos.

Author Posts
January 31, 2024 at 9:46 am #15248289

nicolasG-89

Tell us what you are trying to do? - Already translated the pages on my website. Running a Semrush audit shows 223 hreflang conflicts within page source code (see attached screenshot).

Is there any documentation that you are following? - I already looked up support questions, but unsure how to proceed.

Is there a similar example that we can see? I have attached the following screenshots to this ticket: the semrush error, the screenshot of the hreflang source code from inspecting the webpage, and the WPML plugin settings that are enabled.

What is the link to your site? hidden link

I believe this is happening because the hreflang IS Missing Self-Referencing Hreflang Annotation:

<link rel="alternate" hreflang="en" href="hidden link" />
<link rel="alternate" hreflang="fr" href="hidden link" />
<link rel="alternate" hreflang="x-default" href="hidden link" />

This is quite urgent - we have an SEO audit ongoing atm. Thanks.

hreflang error semrush.PNG
hreflang viewsource.PNG
hreflang plugin settings.PNG
January 31, 2024 at 11:38 am #15248833

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

Hi,

Thank you for contacting WPML support!

Based on the code you provided, it does not appear that there is a missing self-referencing hreflang annotation. The <link rel="alternate" hreflang="x-default" href="hidden link" /> line serves as a default hreflang annotation for users who don't have a specific language preference, and it points to the same URL as the English version (<link rel="alternate" hreflang="en" href="hidden link" />).

1. `<link rel="alternate" hreflang="en" href="hidden link" />` indicates that the page is in English and is the default language.

2. `<link rel="alternate" hreflang="fr" href="hidden link" />` indicates that there is an alternate version of the page in French.

3. `<link rel="alternate" hreflang="x-default" href="hidden link" />` sets the default language to English for users who don't have a specific language preference.

These `hreflang` annotations appear to be set up correctly, and there should not be any conflicts based on this code alone. If you're receiving reports of hreflang conflicts from SEMrush, there may be other issues on your website or in your SEO configuration that need to be investigated. Double-check that the URLs specified in the `href` attribute are valid and that your website's content and language targeting are consistent with these annotations.

Regards,
Bruno Kos

The topic ‘[Closed] 223 hreflang conflicts within page source code’ is closed to new replies.