On this page
What this issue is
Your CSS asks for a custom font with @font-face and a file URL, usually .woff2. If the browser cannot download that file, it uses the next font in your font-family list, often Arial, Times or the device default. This is called a fallback font.
Two causes are most common. A 404 means the file is not at that URL, for example after a theme update, a folder rename, a migration or a changed domain. A CORS error means the font is on a different domain (such as a CDN) and that server does not send an Access-Control-Allow-Origin header. Browsers require that header for fonts loaded across domains.
- Page loadsHTML and CSS arrive fine
- Font requestwoff2 returns 404 or is blocked by CORS
- Fallback fontBrowser uses Arial or a system font
- Layout shiftsWider or narrower text moves buttons and forms
The page still loads, so nobody gets an error message. The design just changes.
Why it costs you leads or sales
A fallback font rarely has the same width and height as your brand font. Headlines can wrap onto extra lines, buttons can grow or shrink, and form labels can overlap. The page looks unfinished, which weakens trust on a landing page or checkout.
The damage is usually moderate rather than total. People can still read and click, but a broken look makes some visitors hesitate. It is also easy to miss, because the problem may only appear for visitors on a cold cache or on one domain, such as a staging copy or a www versus non-www version.
Font file fails
- Text shown in Arial or Times
- Headline wraps to an extra line
- Button text no longer fits the design
- Console shows 404 or CORS error
Font file loads
- Brand font renders on every page
- Layout matches the design
- No red font requests in the Network tab
- Consistent look across browsers
How to check if your site has it
Open DevTools
In Chrome or Edge press F12 (Cmd+Option+I on Mac) and open the Network tab.
Filter to fonts
Click the Font filter, then reload with the cache disabled (tick Disable cache).
Look for red rows
A status of 404, or a request marked failed, is the broken file. Click it to see the exact URL.
Read the Console
A CORS problem shows a message like: Access to font at 'https://cdn.example.com/font.woff2' from origin 'https://example.com' has been blocked by CORS policy.
Compare the URL with reality
Open the font URL in a new tab. If it shows not found, the path is wrong. If it downloads, suspect CORS or a different domain on that page.
How to fix it
First decide which error you have. For a 404, fix the file path or re-upload the file. For CORS, add the right header on the server that hosts the font.
Find where the font is declared
Check your theme or page builder font settings and the theme stylesheet for the
@font-faceURL that fails.Re-upload or re-save
Upload the font to the path in the CSS (often under wp-content/uploads or the theme folder), or re-save the font in the theme or builder so it regenerates the URL.
Clear caches
Clear your caching or optimisation plugin and any CDN, then retest. If a plugin rewrites asset URLs to a CDN, make sure the CDN sends CORS headers for fonts.
Check the theme assets
In Online Store > Themes > Edit code, open Assets and confirm the font file exists with the exact name used in your CSS or Liquid.
Use the asset_url filter
Reference the file with
{{ 'myfont.woff2' | asset_url }}so the CDN path is always correct.Or use Shopify fonts
Where possible pick fonts in the theme editor typography settings, which Shopify serves for you.
Open Site settings > Fonts
Check the custom font is uploaded and the weights you use are listed.
Re-upload the file
If a weight is missing or shows an error, delete and re-upload the font, then republish.
Check custom code
If you added
@font-facein custom code, confirm its URL still works.
Use the font manager
Open the Site fonts or Upload font option in the editor and confirm the font is uploaded.
Re-upload if missing
Upload the file again, reapply it to the text styles and publish.
Check custom font upload
Under Website > Website Tools > Custom CSS, look for the file and its URL. Fonts uploaded there must still be listed.
Re-upload and reference
Upload the font again and update the
@font-faceURL to the new file link.
Check for injected CSS
If a Custom HTML tag injects a stylesheet or
@font-face, open it and test the font URL it points to.Fix the URL and publish
Correct the path, preview the container, then publish a new version.
Fix the path
Make the
url()in@font-facematch the real file location. Relative paths resolve from the CSS file, not the page.Add CORS headers if the font is on another domain
Send Access-Control-Allow-Origin for font files, using the snippets below.
Check MIME types
Serve woff2 as font/woff2 so servers and proxies do not block it.
@font-face {
font-family: 'Brand Sans';
src: url('/fonts/brand-sans.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}
body {
font-family: 'Brand Sans', Arial, sans-serif;
}location ~* \.(woff2?|ttf|otf|eot)$ {
add_header Access-Control-Allow-Origin "https://example.com";
expires 1y;
}<IfModule mod_headers.c>
<FilesMatch "\.(woff2?|ttf|otf|eot)$">
Header set Access-Control-Allow-Origin "https://example.com"
</FilesMatch>
</IfModule>How to confirm it's fixed
- Network tab, Font filter, cache disabled: every font row shows status 200
- No CORS or failed-to-load messages in the Console
- The Computed tab for a heading shows your brand font as rendered
- Checked on the homepage, a landing page and checkout
- Checked on both www and non-www, and on mobile
- Cache and CDN purged before the final test
How to prevent it happening again
- Always list a similar fallback font in
font-familyso a failure looks acceptable - Self-host fonts on your own domain where you can, to avoid CORS surprises
- Retest fonts after theme updates, migrations, domain changes and CDN changes
- Keep font file names stable and avoid renaming folders without updating the CSS
- Include fonts in your release checklist for every landing page template
How FunnelGuard handles this
FunnelGuard detects this today. When its robot visitor runs your journeys on a schedule, it runs a broken-resources check that flags fonts that fail to load on the pages it visits. You get an alert with a screenshot and a likely cause, after a failure is re-checked from a second region.
This covers the pages in your monitored journeys, not every page on your site. You can start with the Free plan (1 site, 2 journeys, daily checks, no card), and paid plans include a 3-day free trial.
Questions people ask
Why is my custom font not loading on my website?
Most often the font file returns a 404 because the path in your CSS is wrong, or the file was moved or deleted. Another common cause is a CORS block when the font sits on a different domain without an Access-Control-Allow-Origin header. Check the Network tab in DevTools with the Font filter to see which.
What does a CORS error on a font mean?
It means the browser refused to use a font hosted on another domain because that server did not send permission via Access-Control-Allow-Origin. The file may download but is still blocked. Add the header for font file types on the host or CDN.
How do I fix a woff2 404 error?
Open the failing URL from the Network tab and compare it with where the file really lives. Then correct the url() in your @font-face, or upload the file to that path. Clear any cache or CDN afterwards and reload with the cache disabled.
Why does my site show Arial or Times instead of my font?
The browser could not load your web font, so it used the next font in your font-family list. Look for a 404 or CORS error on the font request. Fix that and the brand font will render again.
Does a missing font hurt conversions?
It can. Fallback fonts have different widths, so text may wrap, buttons may move and the page can look unfinished. The effect is usually moderate, but it matters on landing pages and checkouts where trust counts.
Why do fonts work on www but not on non-www?
The CORS header may allow only one origin, so the other is blocked. Allow both versions, or redirect one to the other so a single origin loads the font.
How can I monitor font loading automatically?
FunnelGuard runs your real customer journeys on a schedule and flags fonts that fail to load on the pages it visits. It sends an alert with a screenshot and a likely cause once a second-region recheck confirms the failure.
Related issues
- PRF-091FOIT: text invisible for seconds while fonts loadFix guide
- PRF-092FOUT causes visible restyle and layout shiftFix guide
- PRF-093No font-display: swap on web fontsFix guide
- PRF-095Icon font fails so icons render as squares/tofuFix guide
- PRF-098Wrong font loaded for a language (missing glyphs for accented chars)Fix guide
- PRF-094Too many font weights/families loaded (8+ files)Fix guide