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.
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 ?
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 ?
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
Indeed I think your solution would work by replacing h2 with span (as suggested by @LDI too, thanks @LDI too!)
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.