Add New Font

Topic summary

A user is attempting to add a custom font (Fontspring-DEMO-goldenbook) to their Shopify store headings but encountering implementation issues despite following standard procedures.

Steps Taken:

  • Uploaded font file (.woff2 format) to Shopify’s content files
  • Added @font-face declaration in base.css with CDN URL
  • Applied font-family to H1 elements

Troubleshooting Guidance Provided:

  • Upload fonts via Content → Files (not as theme assets)
  • Use proper @font-face syntax with Shopify CDN URLs
  • Place font declarations at the top of CSS file
  • Verify font-family name matches exactly
  • Confirm font file name and format are correct

Current Status:
The font still isn’t displaying despite following the recommended approach. The helper confirmed the CSS syntax appears correct based on screenshots but suspects the font-family name may be incorrect. The user is now questioning whether the font-family name should match the uploaded filename (“Fontspring-DEMO-goldenbook-regular”). The issue remains unresolved with the exact cause unclear from the provided screenshots.

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

Hello,

I am trying to add a font to my shopify store for my main headings. I have followed other posts and have 1. uploaded the font as a woff.2 asset, then added the attached code in my base.css. However, it is still not working? Is someone able to assist me please? Thank you very much.

Ella.

URL: https://www.livwithin.com.au/

Hello @ellacoker ,

  1. Upload the fonts under content → files
  2. Use this format in css
    @font-face {
    font-family: ‘your-font’;
    src: url(‘https://cdn.shopify.com//your-font.woff’) format(‘woff’),
    url(‘https://cdn.shopify.com//your-fonts.woff2’) format(‘woff2’);
    }

Regards
Guleria

Hello - I have just done that, please see screenshot. Still not working though?

Make sure to change the font-family name with real one.

still not working - is this right?

Yes it’s right.
a few things you need to crosscheck.

  1. Call fonts at the top of the css file.

  2. Make sure the font-family is assigned to elements properly.

  3. make sure the font files name and format is correct.

Okay, I have just called out H1, and when you say “call fonts at the top of the css file” are you referring to the screenshot?

Still no luck.

I’m using it the same way in different stores and it works everywhere.
With your screenshots I can’t find what’s the issue btw mot probably issue is font-family name is wrong

Where can I find exactly what the font family name should be? I have just attached the file itself that I have uploaded to the file section - should it be this? “Fontspring-DEMO-goldenbook-regular”