ico files and IE

They have: 10 posts

Joined: Oct 2008

Hello, I am trying tp post a icon or graphic file in my website using favicon. The code I am using is:

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

It is recognized by Mozilla but not by IE or chrome. Is there a way to do this so my graphic icon can be recognized by all browsers?

I have noticed that other sites do not have the favicon embedded in the tag as is the classic way to attach a favicon

Thanks for the help.

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

Your code did not display because you need to enclose it in the <code> code tags </code>

Often favicon problems in IE are due to caching. You might need to clear the cache.

You may need to reset IE to its default settings.

I have noticed that Chrome also persists in caching, you can try holding down the Shift key while clicking on the reload button.

Animated favicons are not supported by all browsers, although you did not state it is an animation.

They have: 10 posts

Joined: Oct 2008

Thanks. I cleared my cache and adjusted my code to:
<link rel="shortcut icon" type="image/icon" href="http://blime13.tripod.com/favicon.ico"/>

this is recognized by Chrome and Mozilla but still not IE. Strangely when I place the path in the browser the image shows up . Is there something that I am missing?

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

Michael,

We still can't see your code, you need to wrap it in code tags, you can use the tool menu above the message textarea, the 3rd icon from the right adds the code tags.

You may need to completely reset IE.

pr0gr4mm3r's picture

He has: 1,502 posts

Joined: Sep 2006

Try viewing your site on a computer that hasn't visited your site before. If you don't have one available, you can submit your site to browsershots.org for some IE screenshots.

P.S. - I edited michaelg's post to show the code correctly.

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

pr0gr4mm3r,

I like that suggestion to check browsershots to rule out the effect of local caching - haven't used it in a while, does it display the favicon properly?

Michael,

Check your code against samples here

pr0gr4mm3r's picture

He has: 1,502 posts

Joined: Sep 2006

It should. It shows the website, browser window, and all. This service is powered by a large community of computers that run the shotfactory software. When you see your screenshot, it's from some computer receiving the request, firing up the requested browser, snapping the screenshot, and uploading the image to the website. I have anywhere between 1 and 3 screenshot factories running for this site. Here is one that's running now.

They have: 10 posts

Joined: Oct 2008

I think this might work , can you see this code?
<link rel="shortcut icon" type="image/icon" href="http://blime13.tripod.com/favicon.ico"/>

thanks for the help

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Another thing you could try is to run your icon through a proper icon creation program. I've had problems with this in the past when the icon wasn't created as an actual .ico.

You should be able to just put the favicon in your site's root directory and the browsers will pick it up. The link tag isn't necessary as long as the file is named favicon.ico.

If you post a link to your site we can check it for you.

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

Megan wrote:
Another thing you could try is to run your icon through a proper icon creation program. I've had problems with this in the past when the icon wasn't created as an actual .ico.

I have not had problems using the Gimp and saving as ico.

He has: 131 posts

Joined: Jun 2008

You could create the icon in favicon.cc.

It lets you download the icon or release it to the public. It is free and easy to use. It also recently added animation abilities, even if not all browsers support this. I find this the easiest way to do it.

What version of IE you are using? IE 6+ can view it and ≤ 5 will not show.

They have: 10 posts

Joined: Oct 2008

Thanks I am using IE 7. So far the ico shows up in Mozilla and Chrome but not IE. But it could be as someone said in the post thread that I might need to try a new computer

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.