Forum Moderators: open

Message Too Old, No Replies

How to get favicon.ico 's to show up!

         

born2drv

12:11 pm on Oct 2, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello. My favicon's never seem to show up, and it bugs me.

I have tried the <link rel='icon' href='/favicon.ico'>, but it doesn't help, I guess because I'm not using a mozzilla browser? I'm using IE6.0, as I am sure many people are.

So the question is, how do I get favicons to show up? And how come Yahoo's favicon always seems to be on my computer, but I can't get mine to work?

Argggh... Thanks for any help.

BlobFisk

12:53 pm on Oct 2, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've found the favicon to be a bit quirky. As far as I know, it will only work on IE browsers - but I'm not 100% sure on that one.

Have you tried looking at the site in question on a different machine? Sometimes, including the favicon call after you have already browsed to that page means that it will not render. Also, are you an a *nix server? The / in front if the favicon.ico call seems a little odd to me!

Sinner_G

1:07 pm on Oct 2, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not sure what you really are talking about. AFAIK, the link tag is supposed to have the browser show the pages reffered to as buttons in a toolbar, but I have never seen it (using IE and Opera). Again AFAIK the link function is not supported by the most used browsers. And I've never even heard of the icon relation.

The other way to use favicon is to have it instead of the IE icon in your bookmarks.

So what is it really you want to have?

martinibuster

1:29 pm on Oct 2, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Other things that can cause a favicon not to work:
Make sure the name is in lower case:
favicon.ico and not favicon.ICO

Chabrik

6:11 pm on Oct 2, 2002 (gmt 0)



Hello everyone,
I've already had this problem and managed to solve it by adding the site in question to favourites. I'm not sure why it is working then, but it really does in my case.
So, I'm looking forward hearing if this solved the problem.

mivox

6:13 pm on Oct 2, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The browser only requests the favicon.ico file when you add a site to your favorites, AFAIK... favicon = favorites icon

jdMorgan

7:47 pm on Oct 2, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Internet Explorer requests the favicon.ico when you bookmark a site. Then it saves it off in Temporary Internet Files. If you clear out the Temporary Internet Files, the favicon.ico will disappear. Webmasters can insert a tag in the <head> of a document to give the favicon a "custom" name:

<link rel="shortcut icon" href="http://www.mydomain.org/mygraphics/myicon.ico">

Netscape7.0 has added favicon support. Netscape7 requests favicon.ico from the server every time a tab in the browser window displaying the page is given focus (regardless of the browser or proxy caches). However, Netscape7 does not appear to heed the shortcut icon tag shown above - it always requests favicon.ico. Webmasters who use custom favicon tags should make sure to have both the default favicon.ico file and their custom favicon file on their servers (an internal redirect will work). Because it requests the favicon so often, Netscape7 does not "lose" favicons.

Mozilla1.1 seems to have corrected the problem with requesting favicon.ico whenever the displaying window tab is given focus. It also appears to support custom favicon file names. However, I can't get it to display Yahoo's favicon, so I think it may "lose" favicons as well.

Netscape's next release is likely to have the same favicon behaviour as this current Mozilla release.

At first glance, Opera6.03 doesn't seem to support favicons.

So, two browsers "lose" favicons but support custom names, another one won't lose them, but reloads them constantly and makes you use the default favicon name, and one still does not support them. All-in-all, pretty poor support for favicons... :(

Jim

born2drv

5:46 am on Oct 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ah, I think I got it. It must get deleted when I delete temp files and clear browser history.

Still doesn't explain why Yahoo's Y! logo never dissapears and all the others do. Oh well, I guess I will never be as sharp as Y! :)

tedster

6:27 am on Oct 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Netscape7 requests favicon.ico from the server every time a tab in the browser window displaying the page is given focus (regardless of the browser or proxy caches)

Well, that's lousy news. No longer will favicon requests be a sign of anything at all.

keyplyr

6:44 am on Oct 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




...why Yahoo's Y! logo never dissapears and all the others do

I believe Y! is bundled with the IE shopping partners and thus has deeper roots.

jdMorgan

6:50 am on Oct 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



tedster,

No, they won't if the UA is Mozilla or Netscape7. :(
We'll have to take the IE Favorites bookmark event numbers and calculate a "probable" number of Mozilla and Netscape bookmarks by using the visitor ratio of the browsers - just like we do for the other non-favicon-enabled browsers.

Favicon support is a kludge.

Jim

bobriggs

6:52 am on Oct 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This seems to be correct. I have a tab open now in Moz1.1 that has an icon next to it. It is not in my bookmarks. I looked at the source code and there is no favicon.ico on that server, it's using the 'custom' name. which is not really a problem unless the 'custom' name is the icon used to actually bookmark the page.

I guess what I mean is:
is there any way to ignore the way Moz1.1 keeps requesting the custom icon? If there's nothing like:
<link HREF="http://www.mysite.com/customicon.ico" REL="SHORTCUT ICON">
then what does it fetch? or try to fetch?

And what does it fetch if that code is there?

jdMorgan

6:59 am on Oct 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can keep your favicons from disappearing if you copy the favicon from your Temporary Internet Files dir into another dir and then use Favorites->Organize Favorites->click on favorite->Properties->Web Document->Change Icon. Change the path to point to the new directory where you put the favicon, and your copy of IE won't lose that favicon any more.

Will our average visitors know how to do this? Nope. (I'm being polite)

Jim

jdMorgan

7:03 am on Oct 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



bobriggs,

It should fetch favicon.ico. Not sure what you meant about checking source code and there's no favicon.

There could be a server-side transparent redirect (path rewrite only) to a different file name, I guess.

Jim

bobriggs

7:19 am on Oct 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well I guess I'm a little confused here.

Probably because of what I know of MSIE.

MSIE:
Someone bookmarks the page, it looks for favicon.ico in the current directory, if 404, then tries to fetch /favicon.ico, and some versions are different, I think. Lemme know if I'm wrong.

NS/Moz: (Excluding META tag reference, I'm assuming webmasters put favicon.ico in the root folder, assuming MSIE as the major browser)

Are you saying that every tabbed page, or for that matter, any open page, that the new NS7/Moz1 will try to fetch favicon.ico in that same folder? and failing that will it look for /favicon.ico as MSIE does? I'm trying to see what the logic of their program is. What is the action or sequence of events on a 404 error looking up favicon.ico? (Excluding the META tag reference) Is this documented anywhere?

jdMorgan

7:27 am on Oct 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



bobriggs,

Well, you've got me there - I'll have to try that and see exactly how Moz/NS works with respect to /favicon.ico if favicon.ico is not found. Since I use the "custom" favicon tag, I have not investigated that branch of the mystery yet. Unless our asia/pacific members beat me to it, I'll play with it tomorrow (it's late in Texas).

Jim

starway

1:17 pm on Oct 4, 2002 (gmt 0)

10+ Year Member



We have just found out yesterday how to deal with favicons.
First of all, it is available for IE5+, Mozilla 1.0 and Netscape 7 on Windows, and I also read somewhere that it's also available for Mozilla and Konqueror on Linux.
I also suspect that in IE case we should add "Windows-only", because *.ico format does not exist on any other platform.

<link rel="shortcut icon" href="http://www.domain.com/favicon.ico">
<link rel="icon" type="image/png" href="http://www.domain.com/favicon.png">

The first line is for IE, the second is for Mozilla and all the rest.
We also discovered that it appears on IE only after you add a page into Favourites, close the window and reload this page. Mozilla shows it from the first time, without any additional actions.

By the way, did anybody try to change the name from favicon.ico to something else (we didn't try it)? All the examples we saw are the same.

jdMorgan

1:51 am on Oct 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



tedster,

Well, that's lousy news. No longer will favicon requests be a sign of anything at all.

Some good news...

Adding the "new" icon tag posted by starway -
<link rel="icon" type="image/ico" href="http://www.domain.com/favicon.ico">
seems to cure the problem of Netscape7 requesting the favicon.ico every time focus is given to the browser tab displaying the page containing that icon. I added the tag, and I no longer see these requests in the server log file.

Thanks starway!

Jim

keyplyr

2:40 am on Oct 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



starway - In IE it is not necessary to use the tag at all. Explorer will automatically look in the root directory for the favicon.ico file whenever a page is saved to favorites. The tag is usually just used to either direct the favicon.ico path for those pages not in the root directory, or to use a custom image instead of the default favicon.ico.

But is it necessary to use this other tag for Mozilla?

starway

9:28 am on Oct 6, 2002 (gmt 0)

10+ Year Member



>>But is it necessary to use this other tag for Mozilla?
Yes it is.

keyplyr

6:51 pm on Oct 6, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Even with the favicon.png in the root directory, Mozila will not find it without that tag? That seems strange. Has anyone actually tested this? And if this is so, will relative path work?

starway

6:37 am on Oct 7, 2002 (gmt 0)

10+ Year Member



I don't see anything strange here.
Why a browser should start doing something if you don't tell it what exactly and how should be done?

tedster

8:28 am on Oct 7, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Even with the favicon.png in the root directory, Mozila will not find it without that tag

As far as I know, the files should be in ICO format, not PNG. It's a special icon format which is really a potential library of several icon files. Favicons usually only include 1 image, but they can include more. However, I don't think a .png file will work at all.

keyplyr

6:31 pm on Oct 7, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



...I don't think a .png file will work at all. - tedster

I have used the favicon.ico, in the root directory, without a <link rel> tag, sucessfully for a couple years.

It is only now that I have ever heard any reference that there needs to be another file format and a special tag for non Windows machines. I actually never thought much about it.

I also suspect that in IE case we should add "Windows-only", because *.ico format does not exist on any other platform. - starway

starway

6:59 am on Oct 8, 2002 (gmt 0)

10+ Year Member



Guys, please read my first post again.

I said that <link rel="shortcut icon"> is for IE, and <link rel="icon"> is for Mozilla/Netscape/Konqueror (maybe also for new Opera that will come soon?).
It's not for non-Windows machines. It's for all browsers except IE.
And it really works - tested in Mozilla 1.1 and Netscape 7 (but doesn't work in Netscape 6.2) on Windows. Favicon appeared only after we added <link rel="icon"> tag.

Also, I don't think that .png is the only format you can use for this. I cannot try to change it for .gif or .jpg now - I have no access to a server. Maybe somebody can test this and tell the result?

jdMorgan

3:14 pm on Oct 8, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The "recommendation" for using .png format comes from the favicon.com web site, as does the "new" icon tag. Because I don't have a .png version of my favicon, I changed the image file name and MIME type in the new tag to use my .ico image. It works fine. The only difference I found using Netscape 7 between having the new icon tag and not having it was in the behaviour of the browser requesting the icon.

Using only the old tag only, NS7 would request "favicon.ico" every time I gave focus to the browser tab displaying a page with which the icon was associated. It was ignoring the old tag, and re-requesting the default favicon.ico from the server every time the tab got focus. This in spite of the fact that the icon was in the browser cache. When I added the new icon tag, NS7 began requesting and using the custom icon filename, and only requesting it only once - when the page was initially loaded.

So for now, I have two icon tags on each entry page that uses favicons:

<link rel="shortcut icon" href="http://www.mydomain.org/customicon.ico"> <!-- old tag -->
<link rel="icon" type="image/ico" href="http://www.mydomain.org/customicon.ico"> <!-- new tag -->

This works as expected, but is another example of the need for standards and backwards compatibility.

Jim

tedster

3:52 pm on Oct 8, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Jim, can you post a link for that recommendation on favicon.com?

I've read that the best way to make a favicon is to BEGIN by creating a .png file. But then it must still be converted to .ico format. ICO is an IBM system format - lots of PC software comes with icon files in an ICO format.

I'm very willing to be proved wrong on this. There's certainly a lot of misinformation around about favicons, and I'd hate to help to spread any.

But I'm nearly 100% certain that favicons only support 1-bit transparency and .png supports 8-bit. That alone points away from using a .png file.

starway

6:51 am on Oct 9, 2002 (gmt 0)

10+ Year Member


OK, I think it's clear now regarding favicons in .ico format on Windows.
What about browsers on other OS? Does anybody have an option to test it on Linux, Mac OS?
(I'm pretty sure that we need a "normal" graphics file format for them.)

dingman

4:11 pm on Oct 9, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It deffinitely works to use a .ico with Mozilla, Galeon, and Konqueror for Linux. I just did it to a test page.

cline

11:51 pm on Oct 10, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What I'd really like to know is how some site favicons keep from being deleted out of the temporary files. Some that I've bookmarked that resist this are ClickZ.com, ask.com, searchengineforums.com, and real.com.
This 37 message thread spans 2 pages: 37