Missing H1 tags

Topic summary

A Shopify store owner discovered their site lacks H1 tags on all pages after running an SEO audit. They want to add H1 tags but prefer to hide them or style them differently from standard headings.

Initial Solutions Proposed:

  • Check if <h1> tags were deleted from header.liquid file
  • Use theme customizer to add H1 headings through section settings
  • Make hero section text the H1 tag (most visible element)

Key Challenge:
The original poster doesn’t like how H1 text appears in the hero section and asks if they can place it elsewhere (below hero, before USP section).

Advanced Solution (Most Recent):
A user shared a detailed two-step method after testing on multiple Shopify stores:

  1. Remove H1 from logo - Edit header.liquid to change <h1> wrapping the logo to <div> (logos shouldn’t be H1 tags)
  2. Add hidden H1 - Insert visually-hidden H1 tag in theme.liquid that’s SEO-visible but invisible to users, using CSS to hide it while keeping it accessible to search engines

This solution specifically targets homepage H1 tags, as collection/product pages typically have them by default. The discussion includes code snippets and references an external blog post with full implementation details.

Summarized with AI on October 27. AI used: claude-sonnet-4-5-20250929.

I have put my website ( www.posablecam.co.uk ) through a SEO tool and they have said I am missing H1 tags from all pages.

How can I add these in?

Is there anyway of hiding the titles? Or having text lower down in the page classed as a H1 tag without it looking different to the rest.

Hey @baileyymans , i hope you’re doing good I am sharing some steps to add H1 tags make sure you haven’t deleted

tag from header.liquid file

  1. Log in to your Shopify admin panel.
  2. Navigate to “Online Store” and click on “Themes.”
  3. In the “Themes” section, click on the “Customize” button for your current theme.
  4. In the left sidebar, select the section where you want to add the H1 heading.
  5. Look for the “Heading” or “Text” element in the section’s settings.
  6. Edit the element and ensure that it is formatted as an H1 heading by selecting the appropriate heading level.
  7. Enter your desired H1 heading text in the content area.
  8. Save the changes and preview your website to see the updated H1 heading.

I hope this will help you solve the issue

Hey Baileyymans!

I see that you’re using Dawn as your theme.

Can also see that you don’t have any H1 as you have specified:

You’d want to make the text in your Hero Section H1, as this will be the first thing your visitors will be seeing.

Where are you trying to put your H1 text? This way I can assist you further.

Hi

I understand that text in my hero section should be the H1. But I don’t like how the text appears in this section.

Can I put the H1 header below this section. As the title before the 3 column 2 row table section of USPs?

1 Like

I have a question about the H1 tag, if it is not in the theme itself, please share a method to do it.

I can see that you are missing H1 Tags in your home page. Use this guide to fix heading tags in your Shopify:

  1. Backup Your Theme: Duplicate your theme before making changes.

  2. Edit Code: Go to “Online Store” > “Themes” > “Actions” > “Edit code.”

  3. Modify Header Code:

    • Search for header.liquid in the code editor.

    • Find the

      tag (usually around the logo) and change it to
      .

    • Save the changes.

  4. Add H1 via Rich Text Section:

    • Go back to “Customize” and add a “Rich text” section to your homepage.

    • Edit the text and set it as an H1 heading.

    • Save and preview your site to confirm the H1 tag is visible.

Let me know if this helps or if you have any other questions :blush:

Hello,

dont you know where to find the <h1?

Because I dont have it in the header.liquid section.

I’d like to delete the H1 from the logo

dawn theme

thank you

Veronika

1 Like

Yes, I do.

I noticed this post is from a month ago, and I’m not sure if anyone has found a solution yet. I just checked your site and saw that the H1 tag is still missing.
I just spent two hours investigating this issue and tried several suggestions —unfortunately, none of them worked for me.

However, after a lot of trial and error, I was finally able to successfully add an H1 tag to the homepage of all four of my Shopify stores. I hope this can help other sellers facing the same problem.

First, to clarify: we’re only talking about adding an H1 to the homepage, since collection, product, and blog pages typically already include an H1 by default.
Second, my solution might not apply to everyone, as it depends on the theme. My four stores use the following themes: Ride, Taste, and Shapes, with two of them using Taste.
Below is the method that worked for me on all four stores. If anything is unclear, feel free to ask!

There are two main steps to correctly configure your homepage H1 tag for better SEO performance.

  • Fix the Logo: Stop the theme from using an

    tag for your logo.

  • Add a New Hidden H1: Implement a custom, search-engine-friendly

    tag that is only visible on the homepage.


Step 1: Fix Your Header (Remove H1 from the Logo)

Most themes incorrectly use the

tag for the logo on the homepage. This needs to be changed to a
.

  1. In your Shopify Admin, go to Online Store > Themes.

  2. On your current theme, click the … button and then Edit code.

  3. In the code editor, open the Sections folder and find the header.liquid file.

  4. Inside this file, search for <h1 to find where the logo is wrapped in an

    tag. You will find code that looks something like this:

    Before:

    HTML

    {%- if template.name == 'index' -%}
      <h1 class="header__heading">
    {%- endif -%}
      <a href="/" class="header__heading-link">
        ... your logo image is here ...
      </a>
    {%- if template.name == 'index' -%}
      </h1>
    {%- endif -%}
    

  5. Your only job here is to change the

    and

    tags to
    and
    .

    After:

    HTML

    {%- if template.name == 'index' -%}
      <div class="header__heading">
    {%- endif -%}
      <a href="/" class="header__heading-link">
        ... your logo image is here ...
      </a>
    {%- if template.name == 'index' -%}
      </div>
    {%- endif -%}
    
  6. Click Save. The

    tag is now free to be used correctly.


Step 2: Add a Real, Hidden H1 to Your Homepage

Now, we will add our own powerful H1 tag that only shows up on the homepage and is invisible to users but visible to search engines.

IMPORTANT: First, make a backup of your theme! Go to Themes, click … and choose Duplicate. This is your safety net.

  1. In the code editor, open the Layout folder and click on the theme.liquid file.

  2. Find the opening tag. It will look something like .

  3. Paste the following code directly below the tag line.

    Code Snippet:

    HTML

    {%- if template.name == 'index' -%}
      <style>    .visually-hidden {
          position: absolute;
          width: 1px;
          height: 1px;
          margin: -1px;
          padding: 0;
          overflow: hidden;
          clip: rect(0, 0, 0, 0);
          border: 0;
          white-space: nowrap;
        }
      </style>
      <h1 class="visually-hidden">Your Homepage Title - Main Keywords Here</h1>
    {%- endif -%}
    
  4. Customize the text! Change Your Awesome Homepage Title - Main Keywords Here to your actual desired H1. Make it descriptive about your store and include your main keywords.

  5. Click Save.

It seems the forum doesn’t allow HTML code—it keeps notifying me that my reply contains invalid HTML. So, I’ve included both the screenshots and the full code in my original blog post about the missing H1 tag. Feel free to check it out for all the details.