Icons Showing as Squares? Fix Font Awesome and Web Fonts Not Loading

Short answer
Why are my website icons showing as squares?
An icon font is a typeface that stores symbols as letters, and Font Awesome maps each icon to one of its characters. If the browser cannot download that font file, it has no shape to draw, so it shows a square or an empty box instead. It is almost always a loading problem.
You open your website and the phone icon in the header, the cart symbol and the social media logos have turned into small empty boxes. When icons showing as squares appear, your site has not crashed. The browser simply could not load the font file that draws those icons, so it falls back to a blank character box. This guide shows you how to find the cause in two minutes, what you can fix yourself and when you need a developer.
In short, the fix starts with finding which file failed and why.
That distinction matters for a business owner, because the alarming screen usually comes down to one file. However, the reason that file fails can vary: a wrong file path, a domain change, a retired CDN link, two versions clashing or a security setting. If you check in the order below, you reach the cause without guessing.
- Is the problem limited to icons, or did the text look change as well?
- Does it affect every page, or only one?
- Do you see the same thing in another browser and on mobile data?
- Did you recently move hosts, change the domain, switch themes or update plugins?
Square, blank space or wrong symbol: what is the screen telling you?
Therefore the exact symptom is your first clue. A box with tiny letters and numbers inside means the browser found no font with a shape for that character. A completely blank area can mean the browser is still waiting for the font or never applied the style. If a different icon shows up instead of the right one, two versions are probably using the same character code.
On the other hand, if accented letters break instead of icons, you are dealing with a different issue. Odd symbols in place of special letters usually point to character encoding; our guide on weird characters instead of special letters covers that. Likewise, if you see a broken image symbol rather than a box, the problem sits with images, not fonts, and our article on images not showing explains it.
Put simply, the square tells you this: the page loads, the text is in place, but the font carrying the icons, or the stylesheet that calls it, never reaches the browser.
How do you diagnose icons showing as squares in two minutes?
You do not need to be a developer for these steps. Chrome, Edge or Firefox on a desktop is enough. Developer tools are a panel that shows what the browser requested while loading the page and what it failed to get.
- Open the affected page, right-click anywhere and choose Inspect, or press F12.
- Switch to the Network tab and reload the page.
- Type "woff" or "fontawesome" into the filter box, so only font and related files remain.
- Look at the Status column. 200 is fine, 404 means the file is missing and 403 means access is blocked.
- If nothing is red, open the Console tab. Red messages that mention CORS or Content Security Policy tell you the cause directly.
- Note the status code and the first sentence of the message. Sending this to a developer saves a lot of time.
The official Chrome DevTools documentation explains that the Network panel lets you filter by file type and that the Status column shows the HTTP response code. Those two details alone usually tell you which row of the table below matches your situation.
Which symptom points to which cause?
The diagnostic table below pairs the causes we see most often in the field with their symptoms. The last column is honest about the split: some fixes you can make in your dashboard, while others need server or code access.
| What you see | Likely cause | Who fixes it? |
|---|---|---|
| Font file returns 404 in the Network tab | Wrong path, folder left behind during a migration | You, if you have file manager access; otherwise a developer |
| CORS warning in the console | Font loads from another domain without a permission header | Developer or server administrator |
| The stylesheet itself fails to load | CDN or kit link retired or changed | You, via theme settings; a developer if it is hardcoded |
| Some icons work, others are squares or wrong | Two Font Awesome versions loading at once | Developer |
| Content Security Policy message in the console | Security policy does not allow the font source | Developer |
| Started after a caching setting change | Combining or minifying broke a relative path | You can test by switching the option off |
| Only on one computer or office network | Ad blocker or corporate filter | You or your network administrator |
The first three rows look like quick fixes, yet they depend on how the site was built. For example, if your theme stores the font URL in the database, putting the file in the right folder is not enough. At this point, if you want the issue closed for good, working with a team that offers web design services and builds the foundation properly keeps those squares from coming back after every update.
What happened if the font file returns a 404?
A 404 is the server saying there is no file at this address. With icon fonts, the most common reason is that the stylesheet looks for the font in the wrong folder. When you self-host Font Awesome, the official setup guide tells you to copy both the css and the webfonts folders into your project and to make sure the paths point to where you placed the files (Font Awesome self-hosting docs).
For example, the problem often starts like this: someone uploads only the css folder and forgets webfonts. Or someone moves the site from a subfolder to the root, and the relative address inside the stylesheet now points nowhere. A relative address describes a file location in relation to the current folder. MDN states that relative URLs in CSS resolve against the stylesheet URL, not the page URL. So moving a stylesheet to another folder also breaks the font paths inside it.
- Copy the font URL that returns 404 in the Network tab and open it in a new tab.
- Check in your file manager whether a file exists in the matching folder.
- If the file lives elsewhere, either move it there or correct the path in the stylesheet.
- If it started after a migration, compare the folder structure on the old and new server.
We collected what tends to get lost during a move in our checklist for changing web hosting without downtime.
Why did my icons disappear after a domain change?
Specifically, this symptom confuses many site owners, because the file is there and downloads when you open its URL. Still, the icons do not render. The reason is a browser security rule. MDN explains that web fonts are subject to the same domain restriction, meaning font files must be on the same domain as the page using them, unless HTTP access controls (CORS) relax that restriction (MDN @font-face).
CORS is a set of rules that lets a page on one domain use a file from another domain. MDN lists web fonts loaded via @font-face among the requests that use CORS and describes Access-Control-Allow-Origin as the header that grants permission (MDN CORS guide). For instance, if your site loads without "www" but the theme calls the font with "www", the browser may treat them as two different origins.
So what do you do? First, check that the site address in your theme or CMS settings matches the address in the browser exactly. Then try loading the font from the same domain. If it has to come from another domain, the server delivering the font must add a header such as Access-Control-Allow-Origin: https://www.example.com to its response. That last step requires server configuration.
What happens when a CDN or Font Awesome kit link changes?
Many themes load Font Awesome from a CDN rather than from your own server. Put simply, a CDN is a content delivery network that serves files from many locations around the world. If the address changes, a version number disappears or the kit account closes, the stylesheet never arrives and every icon vanishes at once. You spot this in the Network tab when the stylesheet itself fails.
A kit is a personal package link generated in your Font Awesome account and added to your site with one line of code. The Font Awesome troubleshooting page asks you to confirm that you copied the kit embed code correctly. The same page also notes that advanced security features such as Subresource Integrity (SRI) and Content Security Policy (CSP) are not compatible with kits (Font Awesome troubleshooting).
- If a former agency or employee added the code, find out which account owns the kit.
- Check whether the kit link appears in more than one place, such as theme settings and plugins.
- As a lasting fix, consider serving the files from your own domain.
How does mixing Font Awesome versions break icons?
If some icons look right while others show as squares or unexpected symbols, two versions are most likely loading together. The Font Awesome troubleshooting page describes this as a common cause and says it often comes from a CMS theme or plugin. Its advice is clear: your site should load just the one version you intend to use.
Why is that a problem? According to the official docs, class names and Unicode values overlap between major versions. A class name is the label in your HTML that calls a specific icon. If one version maps a name to a different icon, or does not know it at all, you get a square. The docs also mention a compatibility option in kits for themes that still use an older version.
We do not list which class names changed in which version, because Font Awesome can change that list with each release. Check the current details in the official upgrade docs. A practical step is to count how many different stylesheets containing "fontawesome" or "font-awesome" load on the page. If there is more than one, find out which comes from the theme and which from a plugin.
Can a Content Security Policy block your icon font?
Yes. A Content Security Policy (CSP) is a security header that tells the browser which sources a site may load files from. MDN explains that the font-src directive specifies valid sources for fonts loaded with @font-face, and that a font from a source that is not allowed is blocked and will not load. If that directive is absent, the browser falls back to default-src (MDN font-src).
This usually starts after someone installs a security plugin or adds security headers on the server. In practice the rules are strict, yet nobody adds the CDN address to the list. The symptom is a red console message that names both the font URL and the policy. Still, the fix is not to switch the policy off. Instead, add only the font source you actually use to the allowed list. For example, if your fonts live on your own domain, font-src 'self' may be enough.
Can caching and minification plugins break font files?
They rarely corrupt the file directly; however, they often cause trouble indirectly. Many speed plugins combine stylesheets and write the result to another folder. If the font path is relative, the new combined file sits in a different folder, so the path now points to the wrong place. As a result, icons turn into squares the moment you enable the plugin. Some plugins also treat fonts as optional and delay them or skip them.
- Switch off CSS combining and minifying in your speed plugin, one option at a time.
- Clear the plugin cache and, if you use one, the CDN cache.
- Reload the page in a private window.
- If the icons return, use the plugin setting that excludes font files from combining.
If you made a change but see no difference, an old cache may be the reason. Our guide on website changes not showing walks through every layer from the browser to the CDN. If the problem began with a plugin update, follow the rollback order in our article on a website that broke after a plugin update.
Does the server MIME type setting affect icons?
First, every time the server sends a file, it declares a MIME type, a label such as "this is a font" or "this is a stylesheet". MDN lists font/woff2 for WOFF2 files. That said, the official docs do not state that a wrong font MIME type blocks the font on its own. The real risk sits with the stylesheet.
According to MDN, when the X-Content-Type-Options: nosniff header is active, the browser blocks a stylesheet whose type is not text/css. In other words, if the Font Awesome stylesheet goes out with the wrong type, the browser never draws the icons. You can check this in the Network tab by clicking the stylesheet and reading the content type in the response headers. Fixing it requires server configuration, which your hosting provider or developer handles.
Also, an upload tool sometimes transfers a font file as text and corrupts it. If the file size on the server differs from the original, upload it again in binary mode.
Can an ad blocker or company network hide your icons?
Yes, but then only some visitors see the problem. Certain ad blockers and corporate network filters block third-party CDN addresses or social media icons. The typical pattern is that everything looks fine on your home laptop while the office computer shows squares.
That is why the test is simple. Open the same page in a private window without extensions and on your phone using mobile data. If it looks right there, the problem lies with that device or network, not your site. Still, if part of your audience uses similar filters, serving icons from your own domain reduces that risk considerably. If your whole site fails to load on certain networks, the cause is DNS or blocking rather than fonts.
Are the icons coming from the theme, a plugin or the page builder?
This question decides who holds the fix. On the same site, three separate layers can call icons: the theme, plugins and the page builder. For example, the theme may add the menu icon, a form plugin the contact icon and the page builder the feature boxes. Therefore, fixing one layer may not remove every square.
- Right-click the broken icon, choose Inspect and note its class name.
- Next, find the stylesheet that defines that class in the Network tab; its URL usually contains the theme or plugin folder name.
- If the URL contains the theme name, look for an icon library option in the theme settings.
- If it contains a plugin name, check that plugin settings first and then its update history.
- That way you make the fix in the right place, and it survives the next update.
This step also exposes version conflicts, so it is worth the extra minute. If two separate Font Awesome stylesheets arrive from two different folders, you have most likely found the source of the problem.
Example scenario: square icons after a migration
Example scenario: a dental clinic moves its website to a new server and switches to the non-www address on the same day. The next morning, the receptionist notices that the calendar icon on the booking button and the WhatsApp symbol in the footer show as squares. The clinic owner first assumes the site was hacked.
In the Network tab, the font files arrive with a 200 response, so the files are in place. However, the console shows a CORS warning. The reason: the theme settings still store the site address with "www" and call the font from there. The browser treats it as a different origin. So the fix is to settle on one address format and connect the old one with a permanent redirect.
In another version of the same scenario, the font file returns 404 because the webfonts folder never made it across. Same symptom, different cause. That is why the first step for icons showing as squares is never a guess; you open the Network and Console tabs.
Above all, the lesson is that a scary screen can come from one shifted setting. Also, a check in a test environment before the move would have kept the problem away from visitors entirely. That is why a staging site matters.
What can you fix yourself, and when do you need a developer?
To be honest, you can solve part of this problem through dashboard settings. The rest requires server or code access, and a wrong move can break more than it fixes.
- Yourself: clear browser and plugin caches, switch off CSS combining in your speed plugin, check the site address in theme settings, test in a private window and on mobile data.
- With file access: upload the missing webfonts folder to the right place and re-upload a corrupted font file.
- Developer: CORS headers, CSP rules, MIME type settings, cleaning up a version conflict and changing addresses hardcoded in the theme.
When you write to a developer, include the status code from the Network tab, the first sentence of the console message and the day the problem started. Those three details cut hours of guesswork.
Why are SVG icons a more robust fix?
SVG is a vector image format that describes shapes mathematically. MDN defines SVG as an XML language for drawing vector graphics. The difference from an icon font is that an SVG icon sits inside the page or in a single image file, so it does not wait for a separate font file before it can render.
As a result, several links in the font loading chain disappear: CORS, font paths, font types and font caching. Font Awesome itself offers SVG plus JavaScript in its official docs as an alternative to the web font and CSS method. That said, SVG does not remove every risk; you still need to serve the file from the right place. If your site uses only a few dozen icons, adding just those as SVG is usually leaner than shipping a font package with hundreds of symbols.
We covered how to pick an icon set and keep it consistent in our guide on choosing an icon set for a website, so we will not repeat it here.
What do you gain by self-hosting fonts?
Serving fonts from your own domain removes the risk of a CDN address changing or shutting down. Because of the same-origin rule, CORS issues usually go away as well. The web.dev font guide says that self-hosting should in theory perform better because it removes a third-party connection setup, but that in practice the difference is less clear cut (web.dev font best practices).
In other words, the main gain is usually control rather than speed: the file is yours, the version is yours and nobody can change it without you knowing. There is also a privacy side. Loading fonts from external services such as Google Fonts sends the visitor IP address to a third party; we covered this in our article on Google Fonts, GDPR and self-hosting. This section is not legal advice.
Font loading speed, the font-display setting and file subsetting are a separate topic; our guide do web fonts slow down websites explains those settings.
What are the most common mistakes with icons showing as squares?
Most of the mistakes we see happen while someone tries to cover the problem quickly, and they bring it back with the next update.
- Installing a second Font Awesome plugin because icons are squares; this makes the version conflict worse.
- Switching off the security plugin or CSP entirely; the icons return, but a security gap stays open.
- Testing only in your own browser; the cache misleads you.
- Copying only the theme folder during a migration and skipping the font folders.
- Editing theme files on the live site without knowing the code; the next theme update erases the change.
- Not knowing who owns the kit account a former team set up.
In short, what these mistakes share is fixing the symptom and leaving the cause. Finding the cause once and writing it down costs less than paying for the same problem again and again.
How should a site be built so this never happens again?
Square icons rarely come from one mistake; they come from how the site was put together. In a messy setup, the theme, plugins and page builder may each call icons from a different place. A solid setup, on the other hand, follows a few simple rules.
- Icons come from one source and one version.
- Frequently used icons sit in the page as SVG, or font files come from your own domain.
- The site address stays in one format, and the other formats redirect to it permanently.
- Security headers list the sources you actually use and live in a written document.
- Every update goes through a test environment first.
- The monthly maintenance list also covers whether font and style files load.
For the last rule, our monthly website maintenance checklist is a good starting point. Applied together, these six rules turn empty boxes from a surprise into a non-issue.
What does our web design team do at this point?
At Talha Aslan and team, we build sites with lean custom code instead of bloated themes and plugin piles. Our scope covers speed and Core Web Vitals as architectural decisions, correct caching, SEO foundations and documented code that any other developer can take over. We write no code before you approve the design, and you see every page in a staging environment before launch.
This approach targets the root of the problems above: icons come from one source, file paths are written down and updates go through testing before they touch the live site. If your current site keeps producing surprises like this and you are considering a rebuild, you can review scope and process on our corporate website design page. Before deciding, we suggest you run the diagnostic steps in this guide first; sometimes a single setting is all it takes.



