Edited code to remove H1 tags in shopify didnt work

Hi, there.

I found my page have redundant H1 tag about SEARCH and CART.

Have edited the H1 class to H2 in Shopify-Section-Search and Cart tempelet.

Unfortunately, the webpage showed that these two H1 tags still remaining.

How could I remove the mutiple H1 tags

It seems it didnt work in shopify-theme-edit code

Hi @mythgreece

Please share the URL of your store so I can check it further

Best,

Daisy

Hi,

This is our website. Thank you!

https://www.mythgreece.com/

HI @mythgreece

I’ve checked the homepage and found two

tags located within the cart drawer. It’s likely that other pages may also have this issue. Both of these

tags are incorrect:

  1. On the homepage, the

    should be reserved for the logo or shop name.

  2. On other pages, it should be used for the page title.

I checked the collection page as well and found three

tags: two within the cart drawer and one for the page title.

To resolve this:

  1. We need to locate the two incorrect

    tags and replace them with

    or

    .

  2. For the homepage, we can add the following code to ensure the shop name is marked as an

    tag please add it in this position https://prnt.sc/dEpdKUknI1sX

{% if template.name == "index" %}
  # {{ shop.name }}
{% endif %}

This code should be placed right under the tag.

To find the two misplaced

tags, you may need to look in the cart or cart-drawer.liquid files, depending on how the theme is structured. Since I’m unsure of the specific theme code, this is a general approach.

I hope this helps,

Best,

Daisy

1 Like

Oh, I finally find the misplace H1 tags, thank you so much.

By the way, do you know how to add characters to H1 tags. As they suggest me to do so