Home / Internet & Networking / Web design / Favicon shows in Firefox but not in IE8 or Chrome
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: Favicon shows in Firefox but not in IE8 or Chrome  (Read 16119 times)
WyattSoft
Topic Starter
Beginner



Thanked: 4
Posts: 80


WyattSoft
« 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...
IP logged
kpac
Web moderator
Moderator
Hacker



Thanked: 179
Posts: 5,828

Certifications: List
Computer: Specs
Experience: Expert
OS: Windows 7
kpac®

1 1 1
« 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" />
IP logged

WyattSoft
Topic Starter
Beginner



Thanked: 4
Posts: 80


WyattSoft
« 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]
IP logged
kpac
Web moderator
Moderator
Hacker



Thanked: 179
Posts: 5,828

Certifications: List
Computer: Specs
Experience: Expert
OS: Windows 7
kpac®

1 1 1
« 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.
IP logged

WyattSoft
Topic Starter
Beginner



Thanked: 4
Posts: 80


WyattSoft
« 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.
IP logged
kpac
Web moderator
Moderator
Hacker



Thanked: 179
Posts: 5,828

Certifications: List
Computer: Specs
Experience: Expert
OS: Windows 7
kpac®

1 1 1
« 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?
IP logged

WyattSoft
Topic Starter
Beginner



Thanked: 4
Posts: 80


WyattSoft
« 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. :)
IP logged
kpac
Web moderator
Moderator
Hacker



Thanked: 179
Posts: 5,828

Certifications: List
Computer: Specs
Experience: Expert
OS: Windows 7
kpac®

1 1 1
« 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. :)
IP logged

borisSDT
Starter



Posts: 3

Experience: Beginner
OS: Unknown

« 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.
IP logged
soybean
Genius



Thanked: 312
Posts: 12,103

Computer: Specs
Experience: Experienced
OS: Windows 7
The first soybean ever to learn the computer.

« 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.   
IP logged


borisSDT
Starter



Posts: 3

Experience: Beginner
OS: Unknown

« 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.
IP logged
soybean
Genius



Thanked: 312
Posts: 12,103

Computer: Specs
Experience: Experienced
OS: Windows 7
The first soybean ever to learn the computer.

« 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.
IP logged


borisSDT
Starter



Posts: 3

Experience: Beginner
OS: Unknown

« 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!
IP logged
soybean
Genius



Thanked: 312
Posts: 12,103

Computer: Specs
Experience: Experienced
OS: Windows 7
The first soybean ever to learn the computer.

« Reply #13 on: July 05, 2011, 08:56:02 AM »

Glad to hear it's all sorted.
IP logged


Sangpuiipa
Greenhorn



Thanked: 1
Posts: 7

Experience: Beginner
OS: Unknown

« 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.
IP logged
Pages: [1] - (Top) Print 
Home / Internet & Networking / Web design / Favicon shows in Firefox but not in IE8 or Chrome « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.112 seconds with 22 queries.