Fix an Empty H1 Tag

Fix an Empty H1 Tag

mOONbOOTS
Explorer
79 6 12

Hello,

 

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

Replies 8 (8)

Dan-From-Ryviu
Shopify Partner
11306 2214 2383

You can add this code before </h1> to fix this issue 

{% if template == 'index' %}
<span class="hidden">{{ shop.name }}</span>
{% endif %}

- Found this helpful? Hit "Like" and "Accept as Solution"! - Feeling generous. Buy me coffee!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify

Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

mOONbOOTS
Explorer
79 6 12

Hi! Thank you for the prompt reply.

 

Is that better than changing <h1 class="header__heading"> to <div class="header__heading">?

Dan-From-Ryviu
Shopify Partner
11306 2214 2383

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

- Found this helpful? Hit "Like" and "Accept as Solution"! - Feeling generous. Buy me coffee!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify

Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

mOONbOOTS
Explorer
79 6 12

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.

Dan-From-Ryviu
Shopify Partner
11306 2214 2383

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

- Found this helpful? Hit "Like" and "Accept as Solution"! - Feeling generous. Buy me coffee!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify

Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

mOONbOOTS
Explorer
79 6 12

Thank you for your help!

PageFly-Richard
Shopify Partner
4971 1112 1795

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 

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.

mOONbOOTS
Explorer
79 6 12

Thank you for your help!