Favorites Icons - Posted (5457 Views)
Average Member
richfed
Posts: 999
999
When saving favorites in the IE browser, some sites display a small icon next to the saved link.
How does one enable their own site to show an icon when saved in someone's browser?

For example, this site, Snitz, has a little "SF" logo next to the saved link on my computer.<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Forum Moderator
AnonJr
Posts: 5768
5768
Glad you got it working.
And yes, I'd rather be too busy than not busy enough. smile<
Posted
Junior Member
TastyNutz
Posts: 251
251
Originally posted by Shaggy
Simply uploading a file called favicon.ico is not enough, you'll also need to add the following line to the head of your page:

<link href="/favicon.ico" rel="icon" type="image/ico" />
I've got several sites that don't have the favicon link, and it shows up fine.<
Posted
Support Moderator
Shaggy
Posts: 6780
6780
In every browser?
Just because something works doesn't necessarily mean it's right - you can use tables to layout your site and it will work just fine but it's still not the right way to do it.
Also, contrary to what Leatherlips posted, it doesn't have to be named favicon.ico nor does it have to go in the root directory. It doesn't even have to be an icon, you could also use a PNG or a GIF.
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Posted
Junior Member
TastyNutz
Posts: 251
251
Sorry Shaggy. Didn't mean to question your authority. I was just saying.<
Posted
Support Moderator
Shaggy
Posts: 6780
6780
Sorry, didn't mean that to come across in such a heavy-handed, "you're wrong, I'm right" kinda way - trying to educate, not dictate! wink
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Posted
Junior Member
TastyNutz
Posts: 251
251
Apology accepted, and I appreciate the information. Especially since a simple Google search for "favicon" mostly turns up instructions along the lines of what leatherlips posted.<
Posted
Support Moderator
Shaggy
Posts: 6780
6780
Yeah, we can "thank" Internet Explorer for that one.
Microsoft were the first ones to introduce support for favicons and, as there was no agreed standard at the time, they made up their own rules (hell, who are we kidding, they still make up their own rules for things even when there is an agreed standard!). Consequently, when other browsers started adding support for them, even after they were standardised, they used the flawed logic that programmers would expect their browser to support them in the same way as the most popular browser in the world thus keeping this incorrect method alive to this day.
The reason it is incorrect is that is considered to be "link squatting" (robots.txt is another culprit), something which goes against the guidelines laid out in the W3C's "Architecture of the World Wide Web". How, for example, would you change the colour of your favicon to correspond with the colour coding of the various sections of your site?
For more information on the W3C's recommendations for adding a favicon to your pages see w3.org/2005/10/howto-favicon.
For more information on the history of the favicon see en.wikipedia.org/wiki/Favicon.
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Posted
New Member
MikeB.Lynn
Posts: 54
54
I'm lost
Here is what my inc_header.aso line 253 looks like:

Code:
  rs.close
set rs = nothing
end if

Response.Write "<html>" & vbNewline & vbNewline & _
"<head>" & vbNewline & _
"<title>" & GetNewTitle(strScriptName) & "</title>" & vbNewline
Response.Write "<link href=""favicon.ico"" rel=""icon"" type=""image/ico"" />"



'## START - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT
Response.Write "<meta name=""copyright"" content=""This Forum code is Copyright (C) 2000-05 Michael Anderson, Pierre Gorissen, Huw Reddick and Richard Kinser, Non-Forum Related code is Copyright (C) " & strCopyright & """>" & vbNewline
'## END - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT
I added the part in red but still no favicon. Any ideas

Never mind. In another thread I found similar instructions (written by AnonJr) but it said to put it here:
Code:
 "-->" & vbNewLine & _
"</style>" & vbNewLine & _
"<link rel=""shortcut icon"" href=""favicon.ico"">" & vbNewLine & _
"</head>" & vbNewLine & _
You Must enter a message