Skip to content
SearchSee plans and prices

Favicon not showing in Google: the Site Icon WordPress writes

Google may show one favicon per hostname, taken from a link on the home page. It says a favicon is not guaranteed to appear even when the rules are met. WordPress prints icon links only after a Site Icon is set, at 32 and 192 pixels, plus an apple-touch icon.

By
WP Ministry
Published

In short

  • Google shows at most one favicon per hostname. A subdirectory cannot have its own. The link has to be on the home page.
  • The file must be a square, at least 8 by 8 pixels. Google recommends larger than 48 by 48. The URL should stay stable.
  • Googlebot has to crawl the home page, follow redirects to the page that names the icon, and Googlebot-Image has to crawl the file. robots.txt must not block either.
  • A favicon is not guaranteed to appear in results, even when every rule is met. Google says it replaces an icon it deems inappropriate with a default.
  • WordPress prints no icon links until a Site Icon is set. Then it prints rel=icon at 32 and 192 pixels and an apple-touch icon.
  • Crawling the new icon takes days or weeks. Asking for the home page to be recrawled is the request Google documents.

A missing favicon in Google's results is a property of the hostname, not of each post. Google's documentation says it shows one favicon per site, and that a site here means the hostname. www.example.com and code.example.com can have different icons. example.com/news is a subdirectory and cannot. It also says a favicon is not guaranteed to appear in results even when every guideline is met.

The steps it lists are to make an icon that follows the rules, to add a link element on the home page, and to allow time for a recrawl. This page is those rules, and what WordPress actually prints when you set a Site Icon. It is not a promise that the icon will show.

What Google asks for

The home page needs a link element in the head. Google says it reads these rel values: icon, and for historical reasons shortcut icon, plus apple-touch-icon and apple-touch-icon-precomposed. The href can be a path on the site or an absolute URL, including a file on a CDN.

html
<link rel="icon" href="/path/to/favicon.ico">

The guidelines, from that page:

  • The icon is a square, at least 8 by 8 pixels. Google recommends larger than 48 by 48 so it holds up at different sizes. The formats it lists are BMP, GIF, ICO, PNG, JPEG, PPM and TIFF.
  • Googlebot must be able to crawl the home page and follow any redirect to the page that names the icon. Googlebot-Image must be able to crawl the file. robots.txt must not block those URLs.
  • The icon should be recognisable as the site's. Google says it will not show an icon it deems inappropriate, including pornography or hate symbols, and that it replaces such an icon with a default.
  • The icon's URL should stay stable. Changing the address often works against you.
  • One icon per hostname. Setting one on the home page covers the hostname and its subdirectories.

Google says crawling can take anywhere from several days to several weeks. The request it documents is to ask for indexing of the home page in the URL Inspection tool. It also offers a feedback form, and says feedback is for improving the system and is not a promise that one site's icon will be changed.

What WordPress prints

A test recorded on what WordPress does with no SEO plugin found no favicon links on a new site. After a Site Icon is set, WordPress prints rel="icon" links at 32 pixels and at 192 pixels, and an apple-touch-icon link. It has done that since WordPress 4.3. 192 pixels is above the 48-pixel size Google recommends. icon and apple-touch-icon are both values Google says it reads.

The links are in the head of WordPress's pages, which includes the home page when the Site Icon is set. View the source of the home page and search for rel="icon". No such line means the Site Icon is not set, or a plugin or a CDN is removing the head tags. A line whose href answers 404 means the file is gone. A line that points at a different host is fine only if that host lets Googlebot-Image fetch it.

Check the file itself. It needs to be square. A wide logo in the Site Icon slot is not the shape Google describes. The page indexing check reads whether the home page is blocked. The icon file has to be allowed as well. A robots.txt rule that disallows /wp-content/ blocks the uploads folder, which is where WordPress stores the Site Icon. Blocked by robots.txt and indexed, though blocked are the report rows for a rule that is wider than you meant. The robots.txt tester answers whether a path is blocked.

If the home page redirects, Google says it follows the redirect to the page that names the icon. A loop or a chain that Google cannot finish is Redirect error. The icon is then read from a page Google never reached.

What this does not fix

  • A subdirectory that wants its own icon. Google says that is not supported. The hostname's home page sets the one icon.
  • An icon that changes URL every time the file is regenerated. Google asks for a stable URL. Point the home page at one address and leave it.
  • A result that still shows a default icon after the markup is right. Google says that can happen even when the guidelines are met, and that an inappropriate image is replaced on purpose. The wait it documents is days to weeks after the home page is recrawled. There is no control on the site that forces the icon into a result.
  • The picture beside a link on another site. This page is Google's search results. A social network reads different tags, which the no-plugin guide notes WordPress does not print.

Changing the Site Icon is a small edit on the site. If the home page source already has a square icon at 192 pixels, the file returns 200, and robots.txt allows it, the remaining wait is Google's. A one-time fix covers the WordPress side when the Site Icon is set and the home page still does not print the links, or when a rule blocks the file. It does not include a promise that Google will display the icon.

Common questions

I set a Site Icon. Why does Google still show a default icon?

Google's page says the icon is not guaranteed to appear, and that a recrawl can take days or weeks. Confirm the home page source contains rel="icon", that the file loads, and that robots.txt does not block it. Then ask for the home page to be recrawled. If those checks fail, the icon was never eligible.

Does the icon have to be favicon.ico in the root?

No. Google's example uses that path. It also says the href can be any path or an absolute URL. WordPress's Site Icon links are enough for the rel values Google lists, once they appear on the home page.

Will a larger file help?

Google's minimum is 8 by 8. It recommends larger than 48 by 48. WordPress's 192-pixel link is in that range. A file that is not square does not meet the rule, whatever its width.

Can each section of the site have its own favicon in Google?

Only if the section is its own hostname. Google says a subdirectory uses the home page's icon. A subdomain can have a different one, set on that subdomain's home page.

More on this subject

Quick Fix, done for you

Quick Fix is $49. One issue, one site, up to about an hour. No fix, no fee. 30-day warranty.

More about this work: One-time WordPress fix

May we measure how this site is used?

A yes notes the pages of this visit and loads Google Analytics. A no keeps and loads nothing. See the cookies page.

If you say yes, we note the pages you look at during this visit and load Google Analytics. If you say no, nothing is kept and nothing is loaded. The site works the same either way. The cookies page has the details.