Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Icons missing from buttons (blank button): how to fix it

PRF-096Medium impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

An icon button shows a small picture instead of (or beside) words. The picture usually comes from one of three sources: an icon font (such as Font Awesome), an inline or linked SVG (a vector image), or an image file. If that source fails, the button stays on the page but the picture is gone.

This is different from icons showing as squares or question marks (see the related icon font guide). Here the space is simply empty, or the button collapses to a tiny sliver. The button still exists in the code, so nothing looks like an error to the page owner.

Why it costs you leads or sales

Icon-only buttons often carry important actions: add to cart, open the menu, call, start a chat, submit a search. If visitors cannot see what the button does, many will not tap it. The call to action is there, but nobody finds it.

The problem is easy to miss because it often depends on the browser, the network or a consent setting. Your own browser may have the font cached, while new visitors on mobile or behind an ad blocker see blanks.

How a blank button loses the action
  1. Visitor lands on pagePage loads normally
  2. Icon file requestedFont or SVG is blocked, missing or slow
  3. Button looks blankNo picture, no text
  4. Visitor taps the buttonMost do not know it is there
  5. Cart, call or chat opensNever reached

The icon file fails, the button looks empty, and the steps after it are never reached.

Clicks on a key buttonExample numbers
Clicks on a key button (example)Icon and label visible: 48 clicks per 1,000 visits; Icon missing, no label: 9 clicks per 1,000 visits01837489Icon and label visibleIcon missing, no labelclicks per 1,000 visits

Example: illustrative numbers showing how a visible icon and label can change how often a button is used.

How to check if your site has it

Find blank buttons
  1. Open the page in a private window

    This avoids cached fonts and logged-in extras. Look at every button and link that should have an icon, on desktop and on a phone.

  2. Open DevTools and reload

    In Chrome, press F12, open the Network tab, filter by Font and Img, and reload. Look for red rows (404, blocked, CORS error).

  3. Check the Console

    Errors such as 'blocked by CORS policy', 'Failed to load resource' or a script error often point to the missing icon source.

  4. Inspect the empty button

    Right-click it, choose Inspect. Check whether the icon element exists, whether it has a width and height, and whether CSS sets display:none, opacity:0 or font-size:0.

  5. Test with extensions and consent off

    Try an ad blocker, a strict privacy browser and a mobile connection. Some tools block icon CDNs or scripts that inject SVGs.

Common causes and what you see in DevTools
CauseWhat you seeTypical fix
Icon font file 404Red font row in NetworkFix the file path or re-upload the font
CORS blocked fontConsole: blocked by CORS policyAdd Access-Control-Allow-Origin on the font host
CDN blocked or downRequest to the CDN failsSelf-host the icon files
SVG sprite missing<use> points to a missing idFix the sprite path and id
CSS hides the iconElement present but zero sizeRemove the rule or set a size
JavaScript did not runEmpty <i> or <span> placeholderFix the script error or use inline SVG

How to fix it

Restore the icon and add a safety net
  1. Fix the failing file

    Correct the 404 path, re-upload the font or SVG, or add the right CORS header if the file is served from another domain.

  2. Prefer inline SVG for key buttons

    Inline SVG lives in the page HTML, so it does not depend on a separate font request or script.

  3. Add a visible text label

    For important actions such as checkout or call, show words next to the icon. If the icon fails, the button still makes sense.

  4. Add an accessible name

    Give icon-only buttons an aria-label so screen readers and tools can name them.

  5. Set a minimum size

    Give the button padding and a min-width so it does not collapse if the icon is missing.

Icon button with inline SVG, label and accessible namehtml
<button type="button" class="cart-btn" aria-label="Open cart">
  <svg width="20" height="20" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
    <path fill="currentColor" d="M7 18a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm10 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM3 2v2h2l3.6 7.6-1.4 2.4A2 2 0 0 0 9 17h11v-2H9.4l1.1-2h7.5a2 2 0 0 0 1.7-1l3.6-6.5L21.5 4H6.2l-.9-2H3Z"/>
  </svg>
  <span class="cart-btn__text">Cart</span>
</button>
Stop the button collapsing if the icon failscss
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
}
Fix by platform
  1. Check the icon plugin or theme setting

    If you use Font Awesome or a theme icon library, check its settings for the loading method (for example, a CDN or a local file). Switch to a local or SVG option if available.

  2. Clear caches and optimisation

    Purge your cache plugin and test with 'delay JavaScript' and 'remove unused CSS' options off. These can strip icon CSS or scripts.

  3. Add labels in your builder

    In Elementor, Divi or the block editor, add a text label to the button next to the icon.

Icon-only button vs resilient button

Before

  • Icon comes from a CDN font
  • No text label
  • No minimum size
  • Empty box if the font is blocked

After

  • Inline SVG in the page
  • Visible text label
  • Minimum size and padding
  • aria-label for screen readers

How to confirm it's fixed

Confirmation checklist
  • Reload in a private window and see every icon on desktop and mobile
  • No red font, SVG or image rows in the Network tab
  • No icon-related errors in the Console
  • Buttons stay readable with an ad blocker on
  • Buttons still make sense with the icon hidden (text label present)
  • Click each button and confirm it does its job

How to prevent it happening again

Prevention habits
  • Self-host icon fonts and SVGs rather than depending on a third-party CDN
  • Use inline SVG for critical call-to-action buttons
  • Always pair key icons with a text label and an aria-label
  • Re-check buttons after theme, plugin or app updates and after changing caching or minify settings
  • Test on a real phone and in a private window after each release
  • Keep a short list of your key buttons and review it monthly

How FunnelGuard handles this

FunnelGuard does not check for missing button icons today. It is a possible future check, not a current feature.

What FunnelGuard does do is run your real customer journeys with a robot visitor on a schedule, from the EU or the US. It checks each step, the tracking hits sent to ad and analytics platforms, and whether test leads reach the inbox and CRM. If a button in a journey cannot be found or clicked, that step can fail and you get one alert with a screenshot and a likely cause. That covers broken journeys, but it does not tell you that an icon looks wrong.

To watch for blank icons yourself, add your key pages to a monthly visual review on desktop and mobile, and use your browser's DevTools Network tab to look for failed font and image requests. A free FunnelGuard plan (1 site, 2 journeys, daily checks, no card) can still watch the journeys that matter most while you do this.

Visual summary

A button with no visible icon

The button is on the page, but visitors cannot see what it does, so the action is missed.

Questions people ask

Why are the icons not showing on my buttons?

Usually the icon font or SVG file failed to load. Common reasons are a wrong file path (404), a CORS error, a blocked CDN, a script that did not run, or CSS hiding the icon. Open DevTools, check the Network and Console tabs, and inspect the empty button to see which one applies.

How do I fix a blank button with no icon?

Restore the failing icon file or switch to an inline SVG, then add a visible text label and an aria-label. Give the button a minimum width and height so it does not collapse. Test in a private window on desktop and mobile.

Why do icons show on my computer but not for visitors?

Your browser may have the font cached, while new visitors download it fresh. Ad blockers, privacy settings, slow mobile networks and cross-domain CORS rules can also block icon files for some people. Test in a private window and on a phone.

Why did my icons disappear after a plugin or theme update?

An update can change file paths, rename icon classes or add CSS that hides them. Caching and minify settings can also strip icon CSS. Clear caches, check the Network tab for failed requests, and disable recent plugins one at a time.

Should I use an icon font or SVG for buttons?

Inline SVG is more reliable for important buttons because it sits in the page and needs no extra font request. Icon fonts work, but they can fail when the font file is blocked or misconfigured. Either way, add a text label for key actions.

Are icon-only buttons bad for accessibility?

They can be, if they have no accessible name. Add an aria-label or visually hidden text so screen readers announce what the button does. Mark the decorative SVG itself with aria-hidden="true".

Does FunnelGuard detect missing icons on buttons?

No. FunnelGuard does not check for missing icons yet; it is a possible future check. It does run your real journeys on a schedule and alerts you if a step fails, so a button that cannot be found or clicked in a journey can show up that way.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

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.