How can I set up hreflang tags for different countries in Shopify?

How can I set up hreflang tags for different countries in Shopify?

Rosbif
Visitor
2 0 1

Hi There,

We are trying to get our store to display in the relevant language for given countries automatically using hreflang tags.

 

The current code for our Hreftags is this: 
 
<link rel="alternate" hreflang="x-default" href="https://cbd-certified.com/">
<link rel="alternate" hreflang="fr-FR" href="https://cbd-certified.com/">
<link rel="alternate" hreflang="es-FR" href="https://cbd-certified.com/es">
<link rel="alternate" hreflang="pt-FR" href="https://cbd-certified.com/pt">
<link rel="alternate" hreflang="de-FR" href="https://cbd-certified.com/de">
<link rel="alternate" hreflang="en-FR" href="https://cbd-certified.com/en">
<link rel="alternate" hreflang="nl-FR" href="https://cbd-certified.com/nl">
<link rel="alternate" hreflang="it-FR" href="https://cbd-certified.com/it">
 

We would like it to be this:

 
<link rel="alternate" hreflang="x-default" href="https://cbd-certified.com/">
<link rel="alternate" hreflang="es-ES" href="https://cbd-certified.com/es">
<link rel="alternate" hreflang="pt-PT" href="https://cbd-certified.com/pt">
<link rel="alternate" hreflang="de-DE" href="https://cbd-certified.com/de">
<link rel="alternate" hreflang="en-UK" href="https://cbd-certified.com/en">
<link rel="alternate" hreflang="nl-NL" href="https://cbd-certified.com/nl">
<link rel="alternate" hreflang="nl-BE" href="https://cbd-certified.com/nl">

<link rel="alternate" hreflang="it-IT" href="https://cbd-certified.com/it">

 

Any ideas on how we can set this up in Shopify?

 

Thanks !

Reply 1 (1)

Alan15
Shopify Partner
148 27 72

Hi @Rosbif . Did you find a solution to this? I am having the same issue

Need more help? Contact me here