Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Favicon shows in Firefox but not in IE8 or Chrome  (Read 44887 times)

0 Members and 1 Guest are viewing this topic.

WyattSoft

    Topic Starter


    Beginner

    Thanked: 4
    Favicon shows in Firefox but not in IE8 or Chrome
    « on: July 27, 2009, 03:41:54 PM »
    I am making a website and I've designed a favicon.

    The icon is a 16x16 8-bit .ico named favicon.ico

    I've tried:
    Putting the favicon.ico in the same location as index.html
    Putting the favicon.ico in my C:\ directory.
    <link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico" />
    <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
    Deleting the IE and Chrome cache.

    And they still don't show the icon...

    kpac

    • Web moderator
    • Moderator


    • Hacker

    • kpac®
    • Thanked: 184
      • Yes
      • Yes
      • Yes
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 7
    Re: Favicon shows in Firefox but not in IE8 or Chrome
    « Reply #1 on: July 27, 2009, 04:01:17 PM »
    Code: [Select]
    <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />That should work if the icon is in the same folder as the file it's supposed to appear on.

    Try this instead:
    Code: [Select]
    <link rel="shortcut icon" type="image/x-icon" href=".../favicon.ico" />

    WyattSoft

      Topic Starter


      Beginner

      Thanked: 4
      Re: Favicon shows in Firefox but not in IE8 or Chrome
      « Reply #2 on: July 28, 2009, 03:59:44 AM »
      Code: [Select]
      <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />That should work if the icon is in the same folder as the file it's supposed to appear on.

      Try this instead:
      Code: [Select]
      <link rel="shortcut icon" type="image/x-icon" href=".../favicon.ico" />

      Note, still didn't work.

      And I've tried using an absolute link to the icon, and still doesn't work.

      In case there's something wrong with the icon itself, I've attached it to this post. (Remove the GIF extension!)

      [attachment deleted by admin]

      kpac

      • Web moderator
      • Moderator


      • Hacker

      • kpac®
      • Thanked: 184
        • Yes
        • Yes
        • Yes
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Windows 7
      Re: Favicon shows in Firefox but not in IE8 or Chrome
      « Reply #3 on: July 28, 2009, 05:37:54 AM »
      Quote
      (Remove the GIF extension!)
      That's the problem!

      What did you use to create it? Paint?
      Go here: http://www.favicongenerator.com/ Upload the file, and it will convert it to an .ico file. You can then download the proper file. ;D

      The problem is that you were linking to an .ico file, when in fact the icon was a .gif file.

      WyattSoft

        Topic Starter


        Beginner

        Thanked: 4
        Re: Favicon shows in Firefox but not in IE8 or Chrome
        « Reply #4 on: July 28, 2009, 06:15:21 AM »
        That's the problem!

        What did you use to create it? Paint?
        Go here: http://www.favicongenerator.com/ Upload the file, and it will convert it to an .ico file. You can then download the proper file. ;D

        The problem is that you were linking to an .ico file, when in fact the icon was a .gif file.

        It's a valid ICO file, I just added the .GIF extension so I could upload it to the forum.

        I created the icon file using IcoFX.

        I tried favicongenerator but when I uploaded a 16x16 PNG file, it just returned a black image file (Not a proper icon), and with a GIF file, it returned an icon but without transparency.

        kpac

        • Web moderator
        • Moderator


        • Hacker

        • kpac®
        • Thanked: 184
          • Yes
          • Yes
          • Yes
        • Certifications: List
        • Computer: Specs
        • Experience: Expert
        • OS: Windows 7
        Re: Favicon shows in Firefox but not in IE8 or Chrome
        « Reply #5 on: July 28, 2009, 06:27:15 AM »
        Hmm....This is quite strange. How are you looking at the file, i.e. are you viewing it from your PC or is the site on the Web?

        WyattSoft

          Topic Starter


          Beginner

          Thanked: 4
          Re: Favicon shows in Firefox but not in IE8 or Chrome
          « Reply #6 on: July 28, 2009, 06:34:52 AM »
          The website files are currently local on my PC.

          I do have a spare page on Freewebs (HTML, not one of their template pages) which I could try the favicon with.

          Result:
          It works, IE and Chrome probably have some sort of issue with Favicons used locally.
          The icon should then work once I've uploaded my page onto the web.


          Thanks for your help kpac. :)

          kpac

          • Web moderator
          • Moderator


          • Hacker

          • kpac®
          • Thanked: 184
            • Yes
            • Yes
            • Yes
          • Certifications: List
          • Computer: Specs
          • Experience: Expert
          • OS: Windows 7
          Re: Favicon shows in Firefox but not in IE8 or Chrome
          « Reply #7 on: July 28, 2009, 06:36:34 AM »
          Quote
          The icon should then work once I've uploaded my page onto the web.
          Yes, that's what I'm thinking too.

          I use a testing server here on my own PC, but most of the time the icon doesn't show up until it's on the Web. Maybe that's the case here too.

          Anyways, I'm glad to help. :)

          borisSDT



            Starter

            • Experience: Beginner
            • OS: Unknown
            Re: Favicon shows in Firefox but not in IE8 or Chrome
            « Reply #8 on: July 05, 2011, 02:59:12 AM »
            I am having the exact same problem.  Works in firefox but not IE or Chrome.  I tried using the favicon generator and no change at all.  Also I stupidly overwrote my old favicon with the new one but the old one looked a lot better.  It was transparent which looks much nicer than a white background.

            Can anybody tell me how to fix both of these things?

            http://www.singledudetravel.com/ is my site.

            soybean



              Genius
            • The first soybean ever to learn the computer.
            • Thanked: 469
            • Computer: Specs
            • Experience: Experienced
            • OS: Windows 10
            Re: Favicon shows in Firefox but not in IE8 or Chrome
            « Reply #9 on: July 05, 2011, 06:53:18 AM »
            Your favicon is supposed to be at http://www.singledudetravel.com/wp-content/themes/atahualpa/images/favicon/favicon.ico.  Right?  That's what your web page file indicates.  Yet, the URL for the favicon does not show it.  Therefore, you apparently have not uploaded your favicon to that folder on your web server.   

            borisSDT



              Starter

              • Experience: Beginner
              • OS: Unknown
              Re: Favicon shows in Firefox but not in IE8 or Chrome
              « Reply #10 on: July 05, 2011, 07:51:44 AM »
              I was not aware of that because it was working always on Firefox and thats what I used until recently.  Doing what you suggested fixed chrome but not IE (at least not the latest version).

              Does anybody know how to fix IE?

              What about how to generate my favicon with a transparent background?  I know I had it before and I know others have pulled it off like zerohedge.com and elance.com for example.

              Thank you.

              soybean



                Genius
              • The first soybean ever to learn the computer.
              • Thanked: 469
              • Computer: Specs
              • Experience: Experienced
              • OS: Windows 10
              Re: Favicon shows in Firefox but not in IE8 or Chrome
              « Reply #11 on: July 05, 2011, 08:16:02 AM »
              If you have Photoshop, here's a reference on creating a transparent favicon: http://mintywhite.com/more/software-more/create-a-transparent-favicon-for-your-website/

              I'm not sure about your issue with IE.

              borisSDT



                Starter

                • Experience: Beginner
                • OS: Unknown
                Re: Favicon shows in Firefox but not in IE8 or Chrome
                « Reply #12 on: July 05, 2011, 08:39:21 AM »
                Great tutorial, thanks a lot.  AND doing that fixed the IE problem somehow too!  Thanks!

                soybean



                  Genius
                • The first soybean ever to learn the computer.
                • Thanked: 469
                • Computer: Specs
                • Experience: Experienced
                • OS: Windows 10
                Re: Favicon shows in Firefox but not in IE8 or Chrome
                « Reply #13 on: July 05, 2011, 08:56:02 AM »
                Glad to hear it's all sorted.

                Sangpuiipa



                  Greenhorn

                  Thanked: 1
                  • Experience: Beginner
                  • OS: Unknown
                  Re: Favicon shows in Firefox but not in IE8 or Chrome
                  « Reply #14 on: July 06, 2011, 03:05:58 AM »
                  IE does not support some .ico file. It can display windows icon file for favicon.