My Blog

Thanks for reading

Displaying favicons in IE7

I just got through resolving an annoying issue with my favicons not displaying in Internet Explorer 7. First off, I’m not sure if this is a new issue, or if I just noticed it today, or if it’s just on this particular PC, but I was able to fix it (as far as I can tell) by using this code from Monday By Noon’s article on favicons:

<link rel="icon" type="image/x-icon" href="favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />

Previously I was using this code:

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

Note: In all of the above code, “favicon.ico” represents the full URL to the favicon that must be placed in the root directory for your site. In my case, this only works when I put it in the root directory of the Wordpress theme. Your results may differ depending on your Wordpress installation.

Using the latter code, my favicon showed up with the latest Firefox, but not IE7. I see alot of people using the latter code, and their icon showed up just fine in Firefox and IE7, so I guess I’m special. If any of you cannot see my favicon, please let me know in the comments, along with what browser you are using. Thanks!

Tags: ,

Leave a comment

* required fields