Dawn theme / H2 before H1 on product page

AI-generated summary

Main issue: On Dawn theme product pages, an H2 heading (“Added to the basket”) appears before the H1, which can negatively impact SEO. H1/H2 are HTML heading tags; search engines use their order to understand page hierarchy.

Key proposals: One suggestion to replace the page’s H1 with H2 was rejected due to SEO concerns. Others advised either moving the cart-notification block below the H1 or changing the notification’s H2 to a non-heading element (e.g., span).

Resolution: The notification headings were changed from H2 to span in cart-notification.liquid (not in cart-notification-product.liquid), specifically around the “Added to the shopping cart” text. This corrected the heading order and resolved the SEO issue.

Outcome/updates: The fix worked and was confirmed by the original poster. A later comment notes the problem appears to be fixed in Dawn v7.0.0.

Status: Resolved with a code change; upgrading to Dawn v7.0.0 may also address it by default.

Hello,

While improving our SEO, we noted that on all the product pages there is a H2 before H1.

That first H2 is for the text “added to the basket” (in French “Article ajouté au panier”) which is displayed when the customer just added the product to his basket. This is causing us bad SEO rating.

How could we change so that this text is not a title but a simple paragraph ?

Here is an example of product page : https://kopajoy.fr/products/kestifoliz

Here is what I found in the code :


Thanks in advance for your help. Regards,

Marion

@marion1234
Go to the product.template.liquid file find the h1 tag and replace it with h2 tag.
Let me know if you need any more help.

thank you

Hello @Zworthkey

why would I replace the h1 tag by a h2 ? In that case I would have no more h1, this is even worse in terms of SEO I think. Or did I misunderstand your solution ?

Thanks

Bonjour,
Looking at the source of that notification code, it doesn’t matter where it is, so you can try to move all that is inside to the bottom of the page below your H1 tag
Also you can just change that tag from

to , it won’t make any difference

Hi @marion1234 ,

You try replace your code by below code:


If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.

Dear @AvadaCommerce

thanks for taking the time to help us :slightly_smiling_face:

Indeed I think your solution would work by replacing h2 with span (as suggested by @LDI too, thanks @LDI too!) :slightly_smiling_face:

But where should I change this ? I have looked for a product.liquid but didn’t find one in the Dawn template. I found a “cart-notification-product.liquid” but it has no h2.

Thanks for your help.

We found the solution !

So in the file “cart-notification.liquid”, we have replaced the

before and after the “Added to the shopping cart” byt a and it solved the issue.

Hopefully in a future version of the theme, this is corrected for everyone.

Thanks for all of you who put us on the lead of the solution !

Thanks for the solution.

if i’m not mistaken, this problem seems to be fixed since Dawn update v7.0.0