4

These are my link tags in my index.html (inside the head tag):

<link rel="icon" href="./iconePourOnglet.png" type="image/png" />
<link rel="apple-touch-icon" href="./logo192.png" type="image/png" />
<link rel="apple-touch-icon-precomposed" href="./logo192.png" type="image/png" />
<link rel="shortcut icon" href="./logo192.png" type="image/png" />

But I still see on Google results the globe:

enter image description here

Even in my Google Search Console there is a globe:

enter image description here

When I use the Google Favicon Snatcher to check my favicon as seen by Google, it's still a globe (https://www.google.com/s2/favicons?domain=https://as-quebec.net).

PS: I am able to see my icons there:

enter image description here

and there: enter image description here

So do you know how can I display my icon in Google results instead of the actual default globe?

Update:

I'm coding in React, and I've made changes. This is my index.html:

<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="apple-touch-icon-precomposed" href="%PUBLIC_URL%/favicon.ico" />
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />

This is my manifest.json:

{
 "short_name": "AS Québec",
 "name": "Create React App Sample",
 "icons": [
 {
  "src": "favicon.ico",
  "sizes": "64x64 32x32 24x24 16x16",
  "type": "image/x-icon"
},
{
  "src": "logo192.png",
  "type": "image/png",
  "sizes": "192x192"
},
{
  "src": "logo512.png",
  "type": "image/png",
  "sizes": "512x512"
}
],
  "start_url": ".",
  "display": "standalone",
  "theme_color": "#000000",
  "background_color": "#ffffff"
}

But I still see the globe...

Now I updated and it's like this:

I'm coding in React, and I've made changes. This is my index.html:

This is my manifest.json:
{  "short_name": "AS Québec",  "name": "Create React App Sample",  "icons": [  {   "src": "favicon.ico",   "sizes": "64x64 32x32 24x24 16x16",   "type": "image/x-icon" }, {   "src": "logo192.png",   "type": "image/png",   "sizes": "192x192" }, {   "src": "logo512.png", "type": "image/png",   "sizes": "512x512" } ],   "start_url": ".",   "display": "standalone",   "theme_color": "#000000",   "background_color": "#ffffff" }

But I still see the globe...

6
  • I would try putting the icon size in the link tags such as sizes="32x32" Commented Aug 17, 2022 at 1:27
  • It is in my manifest.json, look at the update in my question.
    – mathdx
    Commented Aug 23, 2022 at 21:13
  • If it really bothers you then try it in the HTML as a test. What do you have to lose? Commented Aug 23, 2022 at 22:30
  • Like this: <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" sizes="64x64 32x32 24x24 16x16" type="image/x-icon" />?
    – mathdx
    Commented Aug 24, 2022 at 0:01
  • Yes, and then you have to wait for Google to reindex your pages. Commented Aug 24, 2022 at 0:42

3 Answers 3

1

I don't have any issues with any of my 16 sites. Yandex is explicit and likes the first favicon to be at least 32X32. So, all my sites do this. Maybe Google also prefers this. And I would put the size on them - for example

  <link rel="icon" type="image/png" href="/img/favicon-32x32.png" sizes="32x32" />
  <link rel="icon" type="image/svg+xml" href="/img/favicon.svg" sizes="120x120" />
  <link rel="icon" type="image/png" href="/img/favicon-192x192.png" sizes="192x192" />
  <link rel="icon" type="image/png" href="/img/favicon-512x512.png" sizes="512x512" />
  <link rel="apple-touch-icon" type="image/jpg" href="/img/apple-touch-icon.png" />
  <link rel="shortcut icon" type="image/x-icon" href="/img/favicon.ico" />
  <link rel="icon" type="image/x-icon" href="/img/favicon.ico" />

Edit - I just checked (Browser inspect menu) and every one of the sites shows the 32x32 icon rendered as 16x16.

3
  • I've try another thing, you can see it in the update to my question.
    – mathdx
    Commented Aug 23, 2022 at 21:14
  • @mathdx - My understanding of the manifest is that it's really for a PWA and is used on the mobile or desktop for the purposes of installing it. See link. There is absolutely no reason to believe that Google will use it for any other purpose. Commented Aug 23, 2022 at 22:36
  • I've try this in the index.html: «<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" sizes="64x64 32x32 24x24 16x16" type="image/x-icon" />», maybe it will work...
    – mathdx
    Commented Aug 23, 2022 at 23:49
0

Try in the header to add more link to the favicon format .ico perhaps some services are not oriented to png format. But in general here it is necessary to understand on how long you added a favicon to the site, as must pass some time and reindexation for search engine to see your new favicon

2
  • The OP is not talking about Google search results. He is talking about the Google Search Console. So, I am not sure if the reindexation criteria applies. Commented Aug 17, 2022 at 12:32
  • 1
    Yes I still se the globe on Google Search Console. And on Google result also.
    – mathdx
    Commented Aug 23, 2022 at 21:24
0

Before depending on meta, you should do the primary requirement and common understanding of websites. convert your icon to .ico file and upload it to the root of either public_html or www/html and name it "favicon.ico"

Clear cache and you might wait for SEO to capture it, for like 48 hours usually or more, but on your site it's immediately put there. Meta are subordinates of such methods but not the common sense.

1
  • Look at my update to the question.
    – mathdx
    Commented Aug 23, 2022 at 21:12

Not the answer you're looking for? Browse other questions tagged or ask your own question.