Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

No self-referencing hreflang

No self-referencing hreflang

faruk4
Tourist
5 0 1

Hello. My website has two versions, Turkish and English,  www.electrima.com . But I am getting the No self-referencing hreflang error. The pages are confused in Semrush and the search engine. How can I solve this problem?

Replies 2 (2)

FarioConsulting
Shopify Partner
45 3 6

Hi Faruk,
The error "No self-referencing hreflang error" basically states that the page in question does not have a hreflang tag that points to itself. It is important since having it helps helps Google understand that the page is available in several languages.
As such to resolve this error you will need to add a hreflang tag for both the Turkish and English languages.

Looking for Shopify development help?
Visit Fario Consulting
faruk4
Tourist
5 0 1

Hello, thank you for your answer. I know this but I can't edit it. Because there is a hreflang tag that is automatically created by Shopify, but it is misleading.  It's built like this, as you'll see at view-source:https://electrima.com/ 


<link rel="alternate" hreflang="x-default" href="https://electrima.com/">

<link rel="alternate" hreflang="tr-TR" href="https://electrima.com/">

<link rel="alternate" hreflang="en-TR" href="https://electrima.com/en">

However, I need to edit it as follows, otherwise the results will conflict in the armament engine.

 

<link rel="alternate" href="https://www.electrima.com/" hreflang="tr-TR" />

<link rel="alternate" href="https://www.electrima.com/en" hreflang="en" />

<link rel="alternate" href="https://www.electrima.com/en" hreflang="x-default" />

 

 

But it is not edited from the theme code or any other area. It gets more confusing when I add a new extra hreflang tag.

I contact Shopify support, they cannot provide support, I contact the theme creator partner about this issue and they blame Shopify. Absolutely no one provides support and stands behind their service. Everyone throws the bomb in their hands to another direction.