Modify hreflang meta for product variations
-
Hi.
I hope you’re having a good day.
I tried several translation plugins (and hated WMPL complexity!) and yours is very simple yet powerful!
I have an issue about hreflang links, I searched in the forum but didn’t find an answer.
I have some woocommerce product with variations.
Single product variations are linked and indexed by Google.
I have a canonical link to the main product and dome hreflang link to the translated version of the variations, together with a x-default link to the product variation itself in the main language.
<link rel="canonical" href="https://giroinmongolfiera.com/catalogo/le-ceramiche-delle-nostre-mongolfiere/" />
<link rel="alternate" hreflang="it-IT" />
<link rel="alternate" hreflang="en-US" />
<link rel="alternate" hreflang="it" />
<link rel="alternate" hreflang="en" />
<link rel="alternate" hreflang="x-default" />Everything seems ok, but actually ScreamFrog and other SEO tools returns errors when a hreflang have parameters in the link. And I guess that Google does so too.
Is there a way to set product variations to have hreflang links to the canonical product link, not the variations itelself?
Even a plugin, or some custom code to add…
Or is there any documentation that can certify that it is better to link to the variation’s translations even if SEO tools labels it as an error?
Thank you very much for your help.
Have a nice day.
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.