Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Troubleshooting

How to Fix Favicon in WordPress: Causes and Fixes

How to Fix Favicon in WordPress: Causes and Fixes

Short answer

A WordPress favicon usually looks broken because the browser cached the old icon, no Site Icon was uploaded, or a theme, plugin or old favicon file overrides it. Set a square Site Icon of at least 512 pixels, clear all caches, remove duplicate icon tags and test in a private window.

Key takeaways

  • Browsers cache favicons for a long time, so test in a private window.
  • Upload a square Site Icon of at least 512 by 512 pixels.
  • Clear plugin, server and CDN caches after any change.
  • Remove duplicate icon tags from themes and plugins.
  • Google needs to recrawl your site before the new icon appears in search.

Why is your WordPress favicon not working?

A WordPress favicon usually fails to show because the browser is still using a cached old icon, the Site Icon was never set, or a theme, plugin or leftover favicon.ico file is overriding it.

The favicon is the small icon shown in browser tabs, bookmarks and Google search results. WordPress calls it the Site Icon and adds the right HTML tags for you once you upload one.

Most problems fall into two groups. Either the icon is set but you cannot see the change yet, or something else on the site is sending a different icon.

Start with the table below, then work through the fixes in order.

SymptomLikely causeFix
Old icon still in your tabBrowser favicon cacheHard refresh or open a private window
No icon at allSite Icon not setUpload one in Site Identity or Site Editor
Icon correct on some pages onlyPage cache or CDNClear all cache layers
Wrong icon even after uploadTheme or plugin outputs its own tagsRemove the duplicate setting
Old icon at /favicon.icoStatic file in site rootReplace or delete the file
Missing in Google resultsGoogle has not recrawled, or icon blockedCheck guidelines and wait

Have you set a Site Icon?

WordPress only shows a favicon after you upload a Site Icon, which you do in the Customizer under Site Identity on classic themes or through the Site Editor on block themes.

On a classic theme, go to Appearance, then Customize, then Site Identity. Click Select site icon, upload a square image and publish.

On a block theme, open the Site Editor and select the Site Logo block. Its settings include an option to use the logo as the site icon. Recent WordPress versions also place the site icon setting in the main settings screens, so check there if you do not see it.

The Customizer documentation explains the Site Identity panel. For a full walkthrough, see our guide on how to update the favicon in WordPress.

Is the image the right size and format?

WordPress asks for a square image of at least 512 by 512 pixels, and a smaller or non-square image can look blurry, get cropped oddly or fail to upload.

WordPress creates the smaller sizes it needs from that one upload, including icons for browser tabs, Apple devices and Windows tiles.

Use PNG for best results. JPEG works but cannot have a transparent background. Keep the design simple, since it will often be shown at 16 or 32 pixels.

If you crop the image during upload, make sure the important part stays in the center. Thin lines and small text disappear at tiny sizes.

Is the browser showing a cached favicon?

Yes, browsers cache favicons very aggressively, so the old icon can stay in your tab for days even after the new one is live.

This is the most common reason people think the favicon is broken. The site is fine, but your own browser has not asked for the new file.

Try these checks:

  1. Open the site in a private or incognito window.
  2. Try a different browser or another device.
  3. Visit the icon file directly to force a fresh download.
  4. Clear your browser's cached images and files.
  5. Remove and re-add the bookmark if the icon is wrong there.

If the new icon shows in a private window, there is nothing to fix. Visitors will see it as their browsers refresh.

Could a cache plugin or CDN be serving the old icon?

Yes, page caches and CDNs can keep serving old HTML that points to the previous icon, so clear every cache layer after changing the favicon.

WordPress adds the icon tags into the head of every page. If those pages are cached, the old tags remain until the cache expires.

Clear your caching plugin, your host's server cache and any CDN such as Cloudflare. Our guide on clearing cache in WordPress covers each layer.

If you use a CDN, the icon image itself may also be cached at the edge. Purging the specific file URL is usually enough. You can learn how edge caching works in our guide to what a CDN is.

Is a theme or plugin adding a different favicon?

Some themes and plugins add their own favicon tags, which can override or conflict with the WordPress Site Icon.

View the page source in your browser and search for icon. You should see one set of link tags pointing to your uploaded icon in the uploads folder.

If you see a second set, find where it comes from. Common sources are old theme options panels, header and footer script plugins, SEO plugins and code added to header.php.

Remove the extra setting so only the WordPress Site Icon remains. If the code sits in theme files, move any custom code to a child theme and remove the hard-coded favicon line.

The MDN reference for the icon link type explains how browsers choose between several icon tags if you want to understand the conflict.

Is an old favicon.ico file in the root folder?

A favicon.ico file in your site's root folder can still be picked up by browsers and some services, even when WordPress points to a new Site Icon.

Many browsers request /favicon.ico automatically. If an old file sits there from a previous site or theme, it may show up in bookmarks, feed readers or older browsers.

Connect with SFTP or your host's file manager and look in the folder that holds wp-config.php. Replace favicon.ico with your new icon or delete it.

If there is no file, WordPress can answer /favicon.ico requests by redirecting to the Site Icon, so you do not need to add one manually.

Why does Google still show the old or no favicon?

Google shows a favicon only after it recrawls your home page and icon, which can take days or weeks, and it skips icons that do not meet its guidelines.

Google's favicon guidelines ask for a square icon that is a multiple of 48 pixels, a stable URL, and a home page and icon file that Google can crawl.

Check that robots.txt does not block the uploads folder or image files. Our guide on editing robots.txt in WordPress shows where to look.

You can ask Google to recrawl your home page with the URL Inspection tool. If you have not set it up yet, read our guide on connecting Google Search Console to WordPress.

How do you confirm the favicon is fixed?

Open your site in a private window, check the page source for one set of icon tags, and load the icon URL directly to confirm it returns your new image.

The get_site_icon_url() function is what WordPress uses to build those URLs, so the paths in your source should point to a file in your uploads folder.

Test on a phone as well. Add the site to your home screen to check the larger Apple touch icon.

If everything looks right in a private window, your favicon is fixed. Any remaining old icons are local caches that will clear on their own.

Frequently asked questions

Why does my old favicon still show after I changed it?

Your browser has cached the old icon. Open the site in a private window or another browser to check the new one. Page caches and CDNs can also serve old HTML, so clear those after changing the Site Icon.

What size should a WordPress favicon be?

Upload a square image of at least 512 by 512 pixels. WordPress creates the smaller sizes needed for browser tabs and devices from that file. PNG with a simple design works best at small sizes.

How long does Google take to show a new favicon?

It depends on when Google recrawls your home page and icon file, which can take days or a few weeks. Requesting indexing of the home page in Search Console can speed things up, but there is no guaranteed timeline.

Do I need a favicon plugin in WordPress?

No. WordPress has a built-in Site Icon feature that creates all the needed sizes and tags. Plugins are only useful for special cases, such as separate icons for dark mode or advanced device settings.

Why does my favicon show on desktop but not on mobile?

Mobile browsers cache icons separately and may use the larger Apple touch icon. Clear the mobile browser cache, remove and re-add any home screen shortcut, and check that no plugin outputs a different touch icon tag.

Sources

  1. Customizer screen WordPress.org Documentation
  2. get_site_icon_url() WordPress Developer Resources
  3. Define a favicon to show in search results Google Search Central
  4. HTML attribute: rel MDN Web Docs

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.