Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jakubjv's avatar

Hello, how setup favicon.ico properly?

Hello everoyne, i am trying to set favicon proper way.. I've got this in my header Website is available on shared hosting already,, if i hit www.myDomain.cz/favicon.ico ,, images shows up. The favicon is also displayed in the tabs. But If i put my website into google search, it will throw out result withou favicon next to website address and google add there they default favicon. In the search console I'm getting this error

search-console:1195 
 GET https://t3.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://myDomain/&size=32 

I've added favicon right into www folder of hosting. Indexing of website started just yesterday evening, can be reason why is favicon doesnt show up in google search result, because website isn't fully indexed yet?

0 likes
1 reply
hupp's avatar

Checkout these points:

  1. Favicon Guidelines: Google has specific guidelines for favicons. Your favicon must be a multiple of 48px square (for example: 48x48px, 96x96px, 144x144px, etc.), and the favicon URL must be stable (don’t change the URL frequently).
  2. Crawling and Indexing: Google looks for and updates your favicon whenever it crawls your home page. If you’ve made changes to your favicon and want to inform Google about the changes, you can request indexing of your site’s home page. It’s also important to note that the favicon file must be crawlable by Googlebot-Image and the home page by Googlebot; they cannot be blocked for crawling.
  3. Time: Having your favicon displayed by Google takes time. It can easily take more than a week, even if your site is reasonably popular.
  4. Technical Issues: Ensure that your favicon file is not a 0 byte resource. Google might try to use it since loading /favicon.ico is a well-known convention.

Please or to participate in this conversation.