Saturday, August 11, 2007

trouble with favicons

Opera and FF typically will work when this issue arises but will not work within IE a lot of the times. Now lets for example start with something simple to which I will be using my site as an example as I normally do :o) we have a favicon that is somewhere in the head <link rel="icon" href="http://joshknutson.net/images/icons/ favicon.ico" type="image/x-icon" />'

This will not show up in IE but will show up in other browsers, so I then check Microsoft sites to see how they do it. My results: <link rel="icon" href="/s/wlflag.ico" /> from live.com <link rel="SHORTCUT ICON" href="http://hp.msn.com/global/c/hpv10/ favicon.ico" type="image/x-icon" /> from msn.com Now what could be the difference between what didn't work for me, but will work somehow for Microsoft. After fooling around this is what I tried

<link rel="shortcut icon" href="http://joshknutson.net/images/icons/ favicon.ico" type="image/x-icon" /> which works for some unexplainable reason unless I am just caching the results of playing around with it a few different times, this was tested within IE7 and seemed to have worked for me. If need be check out http://joshknutson.net/index.cfm to let me know if this doesn't work with ie6 and such

Amanda Kennedy said...

Hello Josh,

From what I've experienced, favicons only show in IE when the user has bookmarked the site in their favorites. With other browsers, the favicon is displayed whether the page is bookmarked or not! I don't know the technical details of why this is, but perhaps Microsoft will remedy this in future version of IE.

Your comments Here! Hover Your cursor to leave a comment.