Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
@James_Davidson hope you are doing well.
You can use the if condition to render the head tags based on a page template. Please check the example below
{% if template.suffix == 'index' %}
This is the homepage template.
{% endif %}
{% if template.suffix == 'product' %}
This is the product page template.
{% endif %}
{%if template.suffix == 'cart' %}
Cart page
{% endif %}
Im interested in the case where you need to adjust the code in each pages head? Are you trying to manage your meta information?
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025