A space to discuss online store customization, theme development, and Liquid templating.
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?
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.
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.