Hi, there,
The seo inspector showed that canonical link not in head section. How can I fix it?
A Shopify store owner encountered an SEO issue where the canonical link tag was not appearing in the head section of their theme.
Solution provided:
theme.liquid file in the Layout folder<head> section:<link rel="canonical" href="{{ canonical_url }}">
A screenshot was included demonstrating the code placement. The issue appears resolved with this straightforward Liquid template modification.
Hi, there,
The seo inspector showed that canonical link not in head section. How can I fix it?
Hi @mythgreece ,
To fix the canonical link issue:
Go to Online Store > Themes > Actions > Edit Code.
Open theme.liquid in the Layout folder.
Add this inside the section if it’s missing:
Save and test using your SEO Inspector.