Favicon not showing, my icon is no good
Asked Answered
P

5

3

I am able to use favicons if I copy one from another site and test. But my own doesn't work in IE8/Chrome. Mine is a 32x32 24bit icon created by Visual Studio. I always seem to have problems getting icons working right, what should I use? I thought I could have images up to 64x64...

Palm answered 26/5, 2010 at 12:3 Comment(0)
E
5

See this site for instructions for creating a favicon.ico - it needs to be 16*16, not 32*32 (though you can have a composite .ico with both sizes).

I have created composite .ico files with several sizes, so they appear correctly on the browser and the desktop.

Ejaculation answered 26/5, 2010 at 12:20 Comment(0)
Y
1

First, just to be safe, convert your original icon to an .ico using this converter.

Then, for cross-browser compatibility (specifically Internet Explorer), use:

<link rel="shortcut icon" href="http://www.yoursite.com/youricon.ico" />

Most browsers are smart enough to use any PNG/ICO named favicon.ico located in the root of your site, but this is not always reliable.

Yonit answered 26/5, 2010 at 12:22 Comment(0)
C
0

The wikipedia page on favicon contains a lot of information.

The support for favicons differ a bit from browser to browser, and there is no guarantee that the favicon will work on any given system. Sometimes the browser just ignores it for no apparent reason.

To get the widest browser support, you should use the .ico format. There is a compatibility chart on the wikipedia page that tells you how widely supported each format is.

Collis answered 26/5, 2010 at 12:18 Comment(2)
Yes I read it and decided to use ICO. But the ICO I have won't work... I can't find what color depths are supported. Should 24bit 64x64 work?Palm
Use converticon.com to be sure that it's really an ICO (and it needs to be 32x32).Yonit
C
0

You need to use 16x16 .ico file. 32x32 .ico files and .png, .jpg files don't always work in browser title bars. Nowadays you might find some browsers support this but not every browser does this so try to stick to 16x16 .ico files.

Colucci answered 21/1, 2019 at 4:38 Comment(0)
P
-1

I was facing the same issue, you just have to add some extra character,

example: if you have written C:\Users\Desktop\image\icon.ico for fetching the image then you just have to add ?v=2 like this

"C:\Users\Desktop\image\icon.ico?v=2".

or you can just change the format to .jpg, .png etc.

Parenthesis answered 11/11, 2021 at 8:11 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.