Search code examples
internet-explorerfavicon

favicon not working in IE


I have a site using a custom favicon.ico. The favicon displays as expected in all browsers except IE. When trying to display the favicon in IE, I get the big red x; when displaying the favicon in another browser, it displays just fine. The page source includes and it does work in other browsers. Thanks for your thoughts.

EDIT: SOLVED: The source of the issue was the file was a jpg renamed to ico. I created the file as an ico and it is working as expected. Thanks for your input.


Solution

  • Right you've not been that helpful (providing source would be have been really useful!) but here you go... Some things to check:

    Is the code like this:

    <link rel="icon" href="http://www.example.com/favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="http://www.example.com/favicon.ico" type="image/x-icon" />
    

    Is it in the <head>?

    Is the image a real ico file? (renaming a bitmap is not a real .ico! Mildly different format)

    Does it work when you add the page as a bookmark?