How to Change Heading Font Size in Shopify (2026)

Last updated
Expert reviewed
5 min read
Jacques Blom
Jacques Blom
CTO at Fudge.

Key takeaways

  • Global heading sizes are set in Theme Editor > Theme settings > Typography.
  • Most themes offer a heading scale slider that adjusts all heading sizes proportionally.
  • For per-heading control (H1 vs H2 vs H3 at different sizes), you need CSS in your theme’s assets folder.
  • CSS changes require editing assets/base.css or similar - duplicate your theme first.
  • Fudge can write and apply the CSS for you from a plain English description.

Shopify’s Theme Editor gives you control over heading fonts and a general size scale. For precise per-heading sizes, you’ll need to add CSS. Here’s how to do both.

Why you can trust us

We’ve built and customised hundreds of Shopify storefronts. We also built Fudge - an AI storefront editor with a 5.0 rating on the Shopify App Store.


Method 1 - Change heading size in the Theme Editor

This changes the global heading scale across your whole store.

Related: Change Padding and Margin in Shopify.

See also: Change Font Color in Shopify.

Related: Update Fonts in Shopify.

Step 1. Go to Online Store > Themes > Customize.

Step 2. In the left sidebar, scroll down and click Theme settings.

Step 3. Open the Typography section.

Step 4. Find the heading font settings. Most themes include a Heading size or Heading scale slider. Drag it to increase or decrease the size of all headings proportionally.

Step 5. Click Save.

What this controls: This adjusts the base heading scale used by your theme’s CSS. It’s a multiplier - a larger value makes all headings bigger relative to your body text.

What it doesn’t control: The ratio between H1, H2, and H3 sizes. For that, you need CSS.


Method 2 - Change individual heading sizes with CSS

If you need H1 at one size, H2 at a different size, and H3 at another - the Theme Editor alone won’t give you that. You need to add CSS overrides.

Step 1. Duplicate your theme first. Go to Online Store > Themes > Actions > Duplicate. This is your safety net.

Step 2. On your active theme, go to Actions > Edit code.

Step 3. In the file browser, open the Assets folder. Look for base.css, theme.css, or a similarly named main stylesheet.

Step 4. Scroll to the bottom of the file and add your heading size rules:

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

Step 5. Click Save.

Using responsive sizes

For a storefront that looks good on mobile, use a media query to set smaller sizes for small screens:

h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; }

@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
}

Finding the right CSS file

The file name varies by theme:

ThemeMain CSS file
Dawnbase.css
Debuttheme.css
Brooklynapplication.css.liquid
Custom themesLook in Assets for the largest .css file

If you’re unsure which file to edit, search the codebase for an existing h1 or h2 rule to find where heading styles are already defined.

Want precise heading sizes without writing CSS yourself?
Try Fudge for Free

Related: Improve Mobile Spacing in Shopify.


What units to use for font sizes

rem is the recommended unit for font sizes. It’s relative to the browser’s base font size (usually 16px), which means:

Avoid px for headings - it doesn’t scale with browser accessibility settings. Rem does.


Using Fudge for heading size changes

If you’re not comfortable editing CSS files directly, Fudge can handle it. Describe what you want:

“Make H1 headings 2.5rem on desktop and 1.8rem on mobile. Make H2 headings 2rem.”

Fudge identifies the right file, writes the CSS, and shows you a draft to review before anything goes live. No risk of breaking your existing styles.


Quick reference

GoalMethod
Adjust all heading sizes togetherTheme Editor > Theme settings > Typography > Heading scale
Set specific size for H1, H2, H3 separatelyCSS in assets/base.css
Responsive heading sizes for mobileCSS with media queries

FAQ

Why doesn't the heading scale slider change my H1?

Some themes apply the heading-size scale only to specific theme-defined heading classes (e.g., .h0, .h1-display), not the raw <h1> HTML element. If your H1 isn't responding to the slider, inspect the element in DevTools to see which class controls its size, then either update that class via CSS or have Fudge target it.

What heading size should H1 be on a Shopify product page?

A common range is 1.75rem–2.5rem on desktop and 1.4rem–1.8rem on mobile. Larger H1s look design-forward but rarely improve conversion — what matters more is hierarchy and readability. Stay legible at 16-inch and 5-inch viewports both.

Can I have different heading sizes on different page types?

Yes. Shopify adds template-specific classes to the <body> tag (e.g., template-product, template-collection). Scope your CSS like body.template-product h1 { font-size: 2rem; } to apply sizes per template without affecting other pages.

Should headings be the same size on mobile and desktop?

No. A heading sized for desktop typically feels oversized on mobile — reduce by roughly 30–50% with a media query. Without responsive sizing, large desktop headings push content below the fold on phones and harm mobile conversion.

Will changing heading size affect SEO?

No. SEO depends on heading hierarchy (one H1 per page, logical H2/H3 nesting) and the keywords inside headings — not visual size. You can change font sizes freely without impacting rankings, as long as the underlying tag structure stays intact.

Jacques's signature
Get precise heading sizes — just by describing what you want.

Related: Edit Spacing in Shopify.

You might also be interested in

How to Hide a Section on Desktop in Shopify (2026)
How to hide any section on desktop in Shopify using the Theme Editor visibility toggle or a CSS media query targeting min-width.
How to Add a Button in Shopify (2026)
Learn how to add buttons anywhere in your Shopify store — from section buttons to custom CTAs, header buttons, and sticky add-to-cart buttons.
How to Edit Text on Any Page in Shopify (2026)
The three places text lives in Shopify and how to edit each one — Pages editor, theme language settings, and hardcoded theme code.