problem with the heading tag on the product page

Solved

problem with the heading tag on the product page

TRUONGPHAM_102
Tourist
11 0 1

attachment photo 1.pngattachment photo 2.png

 

- I have a problem with the heading tag on the product page. Strangely, it only happens on one product page, not all. Here is the product page that needs to fix the heading tag: https://gaugaupet.com/products/cat-tunnel-bed
- The problem here is that on my interface, there is an H1 tag, which is the product title: GauGau™ Large Cat Tunnel Bed for Indoor Cats
- But the SEO index of the software (attached image 1) says that I also have an H2 tag: GauGau™ Large Cat Tunnel Bed for Indoor Cats
Although I did not create this H2 tag, it is hidden in the source code (attached image 2)
- What do I need to do to remove the H2 tag: GauGau™ Large Cat Tunnel Bed for Indoor Cats
If I need to edit the Code, where do I need to edit it (because it only happens on this product)

I use the Shopify Dawn theme

Accepted Solution (1)

Dan-From-Ryviu
Shopify Partner
8532 1682 1692

This is an accepted solution.

Hi @TRUONGPHAM_102 

You can remove it from Online Store > Themes > In the current theme, click "..." > Edit code > open main-product.liquid file, find this line of code 

{%- when 'title' -%}

Remove this code and save your file

<a href="{{ product.url }}" class="product__title">
  <h2 class="h1">
    {{ product.title | escape }}
  </h2>
</a>

 Screenshot_9.jpg

- Helpful? Like and Accept solution to let me know or Buy me Coffee ❤️!
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Enjoy 1 month of Shopify for $1. Sign up now.

View solution in original post

Replies 3 (3)

Dan-From-Ryviu
Shopify Partner
8532 1682 1692

This is an accepted solution.

Hi @TRUONGPHAM_102 

You can remove it from Online Store > Themes > In the current theme, click "..." > Edit code > open main-product.liquid file, find this line of code 

{%- when 'title' -%}

Remove this code and save your file

<a href="{{ product.url }}" class="product__title">
  <h2 class="h1">
    {{ product.title | escape }}
  </h2>
</a>

 Screenshot_9.jpg

- Helpful? Like and Accept solution to let me know or Buy me Coffee ❤️!
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Enjoy 1 month of Shopify for $1. Sign up now.

TRUONGPHAM_102
Tourist
11 0 1

Great solution, thank you very much

Dan-From-Ryviu
Shopify Partner
8532 1682 1692

You are very welcome! 

- Helpful? Like and Accept solution to let me know or Buy me Coffee ❤️!
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Enjoy 1 month of Shopify for $1. Sign up now.