PDA

View Full Version : Favicon



Mort
05-09-2005, 02:59 AM
http://www.dynamicdrive.com/favicon/

1) How many days is a "few" days for the icon to take effect?
I uploaded my .ico about a week ago and have been checking, and still nothing

I use Firefox.

cr3ative
05-09-2005, 03:27 PM
/

Let's have a look to see if it works for us.

Otherwise, just upload favicon.ico to your root webfolder and that should work.

cr3ative

Mort
05-09-2005, 11:22 PM
I've seen posts about the .ico file "needing" to be in the root folder. How true is that? Mine is not because someone else was nice enough to host my site, therefore all my stuff is in a sub-folder. But if you're curious...
http://www.fourdegrees.net/afterdark/

mwinter
05-10-2005, 12:23 AM
I've seen posts about the .ico file "needing" to be in the root folder. How true is that?Entirely, at least when using favicons. When Microsoft introduced the scheme so that icons could be associated with bookmark items, they decided that checking the root directory was the best way. I think it's stupid, mainly because server logs all over the world are full of 404 errors due to this mindless approach.


Mine is not because someone else was nice enough to host my site, therefore all my stuff is in a sub-folder.There is an alternative: to use a link element to refer to the file. Microsoft chose the following format:


<link rel="shortcut icon" href="...">It, too, is a mistake as the rel attribute is a space separated list of link types, but it's stuck as well.

Whilst Microsoft will still only accept icon files with this method, some user agents will utilise other types, such as PNG. Mozilla (and possibly others) also accepts 'icon' on its own in the rel attribute, which is much more agreeable value.

Mike

Mort
05-10-2005, 01:36 AM
Okay, so, to make it clear, I just moved the .ico file from my 'afterdark' folder to the root folder, assuming (I'm no prefessional at this) root is not the 'fourdegrees' folder, but the '/' folder, as my host has it, my site is 'afterdark' which is inside the 'fourdegrees' folder. Yes/no?

jscheuer1
05-10-2005, 04:01 AM
I just visited the site and according to the server, the file mentioned in your index file:

<link rel="shortcut icon" href="urlcon.ico" />

Is not there. According to this statement, the file, urlcon.ico should be found at this address:

http://www.fourdegrees.net/afterdark/urlcon.ico

upload it to that directory and it should show up at least for your index file.

Mort
05-10-2005, 05:05 AM
Heh, Originally that's where I uploaded it to, but after a week, nothing. As of today, it's now in the root directory. Guess I'll have to wait another "few" days...?

Mort
05-10-2005, 05:09 AM
Okay, I'm really not trying to make this complicated than it should be, so I apologize in advance.

After reading the instructions, slowly, I moved the .ico file to the 'fourdegrees' folder, so when I type in http://fourdegrees.net/urlcon.ico, it shows up, just like the instructions. I guess from here, here is where I wait a few days. Yes?

Mort
05-10-2005, 05:13 AM
Sorry! One more question

Since the .ico file is in the '/fourdegrees' folder, do I
<link rel="shortcut icon" href="fourdgrees/urlcon.ico" />
or just
<link rel="shortcut icon" href="urlcon.ico" /> ...?

jscheuer1
05-10-2005, 05:38 AM
With that location, best to use:

<link rel="shortcut icon" href="http://fourdegrees.net/urlcon.ico">

on all the pages you want to have this icon. And, with FF it should show up almost immediately, after a few refresh pages at most. IE is the real slowpoke when it comes to recognizing these icons, sometimes (in IE only), tugging slightly a few times using a drag and drop motion at the default icon in the address bar will get it to refresh.

Mort
05-10-2005, 05:46 AM
Dude, after one refresh, it worked. You are awesome!

Thanks to everyone that replied, I appreciate it all!

mwinter
05-10-2005, 10:21 AM
With that location, best to use:

<link rel="shortcut icon" href="http://fourdegrees.net/urlcon.ico">I'd say '/urlcon.ico' would be best, but it doesn't really matter just as long as it works.


IE is the real slowpoke when it comes to recognizing these iconsI get the impression that IE tends to freeze favicons in the cache, rather than updating them like other items. Though you can force user agents to revalidate a document by hitting Refresh, I assume IE doesn't include favicons in that update.

Mike

jscheuer1
05-10-2005, 04:59 PM
I get the impression that IE tends to freeze favicons in the cacheIf only. The behavior of IE with favicons is inscrutable to me and I use IE as my primary these days owing to its being the widest used browser, not because I prefer it. In my experience, once you coax IE into recognizing a favicon or, if by chance and I mean chance with a capital 'C', it does so on its own, it soon loses track of said favicon. Alternatively, no matter what you do, NS7.2 and FF seem to always just find the favicon if it is associated in one of the approved ways with a page.

MoboMan
02-23-2006, 12:46 PM
I agree - the whole favicon thing is a PITA!

I have tried every conceivable combination in this thread (and others) with absolutely no luck whatsover - now securely filed in room 101!

... sulking off into the sunset ....

fadman
02-01-2007, 05:29 PM
try using the exact root path in the tag. Example: <link rel="shortcut icon" href="http://my_site/image/favicon.ico" /> I changed mine to this and it worked right away