SEO: HREFLANG implementation in themes

Sebmiami
Shopify Expert
7 0 0

- CONTEXT: We are trying to inject HREFLANG in a Shopify product page template. Each product page needs different hreflang while a template has the same code for all product page therefore we cannot apply different hard coded hreflang on each page.

- SOLUTION: We are thinking to create a product METAFIELD with value including the HREFLANG needed. Its value will be different for each product and would be posted in the product page code.

- QUESTION: Does anyone already tried this? Any feedback? Thanks!

0 Likes

Dear Sebmiami,

 

You can put it theme.liquid. But before that make sure you have the landing page or website as per the respective language 

Regards,
Task4Store - Get Shopify Small Task Help
Contact Us
: https://www.task4store.com/pages/contact-us OR task4store@mswebdesigner.com
1400+ Happy Clients | 25000+ Shopify Small Tasks Done
0 Likes