Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
I was wondering if anyone can help. I need to change the homepage ONLY to refer to another page (a collections page) on my site, as the homepage is cannabalising the ranking and the collections page is the preferred page.
Is there any way of editing the html so just the canonical link on the homepage is updated (to direct to the product page?)
Many thanks!
Hey @chaweng2012 ,
This should be the code you need! Simply add it near the top of your theme.liquid file:
{% if template == 'index' %}
<link rel="canonical" href="https://www.AddYourUrlHere.com" />
{% endif %}
If this resolves your issue, please consider marking the answer as helpful or accepted!
The year-end shopping spree is around the corner! Is your online store ready for the ...
By JasonH Nov 10, 2024We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024