Fix an Empty H1 Tag

Hello,

Why does the Dawn theme wrap the logo in an h1 tag, and should I change it to a div?

You can add this code before to fix this issue

{% if template == 'index' %}
{{ shop.name }}
{% endif %}

Hi! Thank you for the prompt reply.

Is that better than changing

to
?

1 Like

It will become a missing H1 issue if you change it like that instead of an empty H1 issue.

What if make the image banner text an h1? Then it should be good, right?

Right now, I have a notification from an SEO audit that says I have multiple h1’s because I made the image banner text an h1 and then realized Dawn wraps the logo in an h1 tag.

1 Like

Hi @mOONbOOTS

This is Richard from PageFly - Shopify Page Builder App

This is happening because of the theme is make sure your store will not missing any h1 tag to become SEO friendly.

If you already had your own h1 you can simply remove it for that page only. If you change the h1 tag to another tag, make sure all pages of your store already had the h1 tag.

Hope this can help you solve the issue

Best regards,

Richard | PageFly

1 Like

It could be, but if you have more than one image banner, you get a duplicate H1 tag issue.

1 Like

Thank you for your help!

Thank you for your help!