Dawn theme / H2 before H1 on product page

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