Search code examples
internet-explorerfavicon

Why Icon is not showing in IE


I want to add Icon(favicon) in my project.

so I have added following line in my header:

<link rel="shortcut icon" type="image/png" href="view/pics/google_favicon.png"/>

and added "google_favicon.png" images in pics folder.

Problem : It is showing Icon in Mozilla,Chrome and safari but not showing it in IE.

Can any body help me? Thanks.


Solution

  • It is probably cached in browser, try "hard" refresh of page (ctrl+f5). (in any browser)

    Also try full path http://www.example.com/view/pics/google_favicon.png

    edit

    your picture file must be VALID favicon.ico file

    found a thread on this:

      • Make sure the file is a valid icon file. There are files floating around that have the extension .ico but are not valid icon files. And there are problems (i think) if you convert bmp, jpg, jpeg or gif images to icon files.
      • Name the file exactly as "favicon.ico" with out the double quotes.
      • IE8 will never display the icon if the file is on your hard disk. It has to be on the internet. Other browers such as firefox will however show the icon even if they are on your hard disk.
      • IE8 downloads the favicon.ico file in the folder. C:\Documents and Settings\user\Local Settings\Temporary Internet Files where user = the name with which u logged in windos xp.