For the complete documentation index, see llms.txt. This page is also available as Markdown.

Heading tags and SEO for your Shopify store

Learn how HTML heading tags (H1–H6) affect SEO in Shopify: one H1 per page, maintain hierarchy, use keywords in headings, and avoid heading tags for styling.

Heading tags (H1–H6) define the content hierarchy of your store pages. Used correctly, they help search engines understand your page structure and improve your store's visibility in search results.


How heading tags work

HTML heading tags range from H1 (highest level) to H6 (lowest). Think of them like an outline:

Tag
Purpose
Example

H1

Main page title — one per page

"Women's Leather Jackets"

H2

Major sections

"Featured styles", "How to choose"

H3

Subsections within H2

"Slim fit", "Oversized"

H4–H6

Rarely needed in most stores

Search engines use heading structure to understand what your page is about and how content is organized. Shopify stores that use headings correctly tend to rank better for their target keywords.


Heading tags in a Shopify store

In a typical Shopify store, headings are assigned automatically based on content type:

  • Homepage — your store name or the first heading block in your hero section is usually H1

  • Product pages — the product title renders as H1

  • Collection pages — the collection title renders as H1

  • Blog posts — the post title renders as H1

Section headings you add inside the theme editor (e.g., "Featured collections" or "Our story") are typically H2.


Best practices

One H1 per page. Each page should have a single H1 — the main title. Shopify handles this for product, collection, and blog pages automatically.

Use headings hierarchically. Don't skip levels (e.g., going from H2 to H4). Maintain a logical structure: H1 → H2 → H3.

Put keywords in headings. Headings carry SEO weight. Use natural, descriptive text that reflects what the page is about — not just decorative labels like "Welcome" or "Shop now."

Don't use headings for styling. If you want large or bold text, use your theme's text formatting options — not heading tags. Using H2 for a decorative caption confuses search engines about your page structure.


Last updated

Was this helpful?