Black Friday: 50% off the full report and report packs until Tuesday 1 December.

Start a free scan

Fix library · Shopify

Give every page a main heading (H1) on Shopify

The H1 is the heading at the top of a page that tells visitors, screen readers and Google what the page is about. Here is how to add one where it’s missing.

  • Whoever edits your pages
  • about 10 min a page

The fix: Give each page one visible main heading, marked up as an H1, that says what the page is about.

Step by step

  1. Open a page and look at the main heading at the top of the content.
  2. If there is no heading, add one that names the page's topic, product or service.
  3. If there is a heading but it isn't an H1 (it is styled text or an H2), change its level to Heading 1 in your editor.
  4. If every page of one type lacks an H1, the template is the cause, for example a theme that shows the title as plain text; fix the template once.
  5. View the page source and confirm one <h1> appears with the right text.

On Shopify

  1. Themes normally print the product, collection or page title as the H1. If it is missing, a customized template has removed or replaced the title; restore it in the theme editor, or ask your developer to change the heading tag in the section's code.

Why it matters

The H1 is the main heading at the top of a page, telling visitors at a glance that they are in the right place. Google uses the main visible heading as one of its sources when it writes the headline for your search result, and its guidance suggests putting the page's title in the first visible H1. Screen reader users also jump to the H1 to find where the content starts.

For your developer

The check reads the HTML as served, so a heading inserted only by client-side JavaScript counts as missing; render it on the server. An H1 that wraps only an image without alt text counts as an empty heading, a separate check, and styled <div> or <p> elements that look like headings don't count.

<main>
  <h1>Wedding cakes in Austin</h1>
  <p>Hand-made to order, from tasting to delivery.</p>
</main>
One visible main heading at the top of the content

Sources