Is my product page code causing missing H1 in SEO reports?

Is my product page code causing missing H1 in SEO reports?

zulima
Tourist
5 0 1

My Seo reports say there are no H1 found, when checking my product page i found this code. can anyone check if it is ok, or if the title has both H1, and H2?

 

My code is:

 <div class="product__title" {{ block.shopify_attributes }}>
<h1>{{ product.title | escape }}</h1>
<a href="{{ product.url }}" class="product__title">
<h2 class="h1">
{{ product.title | escape }}
</h2>

Reply 1 (1)

Victor
Shopify Staff
2611 236 566

Hi @zulima,

 

Our themes team do not recommend making any edits to your theme's code to add or remove H1 tags as it is not necessary. H1 tags are used to indicate the largest or most important header on a page, but not having them has no negative effect on a page (nor does having more than one). Shopify themes are built to be well organized and structured and fully optimized for SEO.

 

Our Help Center includes advice on how you can improve SEO on your store via other means. Please let me know if you have more questions.

Victor | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog