Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
On my product pages the h1 is automatically duplicated in h2.
I deleted this piece of code, is it good for SEO or would it be better to just change it to <p>?
If anyone knows what this h2 is for, I'd like to know.
Thanks in advance
I think it's useless as product.title is available in the h1 tag.
Also I suggest removing the anchor tag too which wraps the <h2> tag there is no need for it.
Hello @Guleria thank you for your reply.
But what is this h2 for?
Is it an anchor or something else?
I deleted the piece of code highlighted on the image.
I've looked at other themes and there's no <h2> or <p> at that level, so I don't know why the developers added it.
hello, we also deleted the highlited text and now our H1 has no H2 copy 🙂
<h2 class="h1">
{{ product.title | escape }}
</h2>
It worked 🙂
but what do you suggest to delete too? can you highlite it please?
Thank you 🙂
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