Computer Hope


Computer Hope Forum Welcome, Guest. Please login or register.
February 09, 2010, 12:57:23 PM
Home Help Staff Chat Login Register
News: Need help with posting a question?

Computer Hope - Computer Help Forums  >>  Internet & Networking  >>  Web design (Moderator: kpac)  >>  Topic: Favicon shows in Firefox but not in IE8 or Chrome 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: Favicon shows in Firefox but not in IE8 or Chrome  (Read 1567 times)
WyattSoft
Topic Starter
Beginner
*
Posts: 69

Thanked: 4
OS: Linux Variant
Computer: Specs
Experience: Experienced


WWW
« 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...
Logged
kpac
Web moderator
Moderator
Guru
*
Posts: 4351

Thanked: 118
OS: Windows 7
Computer: Specs
Experience: Guru
Certifications: List


WWW
« Reply #1 on: July 27, 2009, 04:01:17 PM »

Code:
<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:
<link rel="shortcut icon" type="image/x-icon" href=".../favicon.ico" />
Logged

WyattSoft
Topic Starter
Beginner
*
Posts: 69

Thanked: 4
OS: Linux Variant
Computer: Specs
Experience: Experienced


WWW
« Reply #2 on: July 28, 2009, 03:59:44 AM »

Code:
<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:
<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]
Logged
kpac
Web moderator
Moderator
Guru
*
Posts: 4351

Thanked: 118
OS: Windows 7
Computer: Specs
Experience: Guru
Certifications: List


WWW
« 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. Grin

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

WyattSoft
Topic Starter
Beginner
*
Posts: 69

Thanked: 4
OS: Linux Variant
Computer: Specs
Experience: Experienced


WWW
« 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. Grin

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.
Logged
kpac
Web moderator
Moderator
Guru
*
Posts: 4351

Thanked: 118
OS: Windows 7
Computer: Specs
Experience: Guru
Certifications: List


WWW
« 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?
Logged

WyattSoft
Topic Starter
Beginner
*
Posts: 69

Thanked: 4
OS: Linux Variant
Computer: Specs
Experience: Experienced


WWW
« 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. Smiley
Logged
kpac
Web moderator
Moderator
Guru
*
Posts: 4351

Thanked: 118
OS: Windows 7
Computer: Specs
Experience: Guru
Certifications: List


WWW
« 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. Smiley
Logged

Pages: [1] - (Top) Print 
Computer Hope - Computer Help Forums  >>  Internet & Networking  >>  Web design (Moderator: kpac)  >>  Topic: Favicon shows in Firefox but not in IE8 or Chrome « previous next »
Jump to:  


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright 1998-2010 by Computer Hope (tm). All rights reserved
Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC
Page created in 7.077 seconds with 19 queries.