I have these 3 directories for different countries. I can add an hreflang
on WordPress, but I don't know where to implement it on my Shopify site.
https://example.com
is for the USA
https://nl.example.com
is for Netherlands
https://example.com/en-de
is for Denmark
Can I set up this through the main domain (https://example.com/
), or do I have to put this code in all the directories? And, where is this option?
<head>
section of your theme in theme.liquid. There are other methods, such as using Custom Fields, covered in this.There are some Shopify apps that add Hreflang tags to your pages for you. Translation apps such as Weglot and Langify will automatically generate your Hreflang tags and add them to your pages.
So check if you have a translation app installed, and see if removing or disabling that removes thehrefrelang
links as well.