Click to See Complete Forum and Search --> : favicon problems


sawatdee
05-17-2010, 08:11 PM
I put favicon.ico in my document root directory. It works for Opera and Chrome on Linux, but not Firefox. It works for Chrome on Windows, but not Opera, Safari, IE, or Firefox.

I tried using a link element even though I've heard you don't have to if the file is named favicon.ico and is in the document root, but that didn't work either. I tried the link element with rel set to "icon", "favicon", and "shortcut icon", but none of them worked.

I used the Gimp to create the ico file, and the file it created is 1100K which seems kind of big. I am wondering if it created the file with options that are not supported by some browsers. Does anyone know of any favicon editors? I'm not sure what else to try next.

tirna
05-17-2010, 08:25 PM
I use the following <link>s for both static and animated favicons and it works fine for all browsers.

The only proviso is that the web page needs to be opened on a web server - local like XAMPP or a "real" one - for the favicons to appear. No idea why though.


<link rel="shortcut icon" href="./pics/favicon.ico" />
<link rel="icon" href="./pics/animated_favicon1.gif" type="image/gif" />


The paths are relative to the location of the web page.