Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Font file not loading (404 or CORS): how to find and fix it

PRF-090Medium impactDetectedBy FunnelGuardPublished Updated
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.

What happens when the font file breaks
  1. Page loadsHTML and CSS arrive fine
  2. Font requestwoff2 returns 404 or is blocked by CORS
  3. Fallback fontBrowser uses Arial or a system font
  4. 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.

Brand font vs fallback

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

Find the failing font request in your browser
  1. Open DevTools

    In Chrome or Edge press F12 (Cmd+Option+I on Mac) and open the Network tab.

  2. Filter to fonts

    Click the Font filter, then reload with the cache disabled (tick Disable cache).

  3. Look for red rows

    A status of 404, or a request marked failed, is the broken file. Click it to see the exact URL.

  4. 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.

  5. 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.

Fix by platform
  1. Find where the font is declared

    Check your theme or page builder font settings and the theme stylesheet for the @font-face URL that fails.

  2. 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.

  3. 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.

Correct @font-face with a fallback stackcss
@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;
}
Nginx: allow fonts across domainsnginx
location ~* \.(woff2?|ttf|otf|eot)$ {
    add_header Access-Control-Allow-Origin "https://example.com";
    expires 1y;
}
Apache: allow fonts across domainshtaccess
<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

Confirmation checks
  • 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

Prevention habits
  • Always list a similar fallback font in font-family so 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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: no_broken_resources font.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.