All things Shopify and commerce
Hello, I recently added H1 title on my Shopify store using the custom liquid option in the theme editor. I am using Dawn 15.0. The issue is this is conflicting either my collection and product pages H1 titles. After scanning with an SEO auditor, it's showing I have duplicate H1 tags for every URL. The reason for this is like I said, the H1 title on my home page is also an H1 title on every collection and product page. How do I edit this so its only an H1 on home page but H2 on all other pages or just remove the title from all other pages expect the home page?
You can use the following code as an example.
{% if template.name == "index" %}
<h1>Your code here </h1>
{% else %}
<h2>Your code here </h2>
{% endif %}
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Thank you so much, how do I edit my logo to remove the H1 tags on it and what do I put instead of H1? <div> or H2?
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