Browsers: Adding Icons when adding to Favorites

started by Dutchy on Feb 29, 2004 — RSS Feed

Dutchy Dutchy
Posts: 5

Hi

My problem is that I would like to add an Icon, so that when a visitor adds the site to their Favorites list the icon shows on the line.

I have checked out a few sites that do this, the WPDFD site for instance is one that adds a little icon.  I have had a look at the code using "view source":

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

This is similar to codes on other pages that add icons.

I have added this code to my test page, I have created the favicon.ico icon and tested it on IE 6 offline and it does not work.

What I find that is a little puzzling that there are sites that add an icon when being added to Favorites but I can not find any code on the page.  Could it be in a Style Sheet on these sites?.  

Has anyone got any experience in this area?.

Would appreciate any help I can get!.

Regards Dutchy  

Joe Gillespie Joe Gillespie
Posts: 528

As it happens, I've got a little tutorial about just that in the March issue going up today at

http://www.wpdfd.com/editorial/review0304.htm.#footnote

Joe

Dutchy Dutchy
Posts: 5

Thanks FA

I have read your tuturial.

I now have the feature working.

One of my problems was that it would not work during the offline testing phase.  I do not know if this is a characteristic of the feature or just my PC.

So far the 32X32 ico works OK in IE6 but I have not tested it in any other browsers.

The URL is: http://swanmore.epc.net.au

Regards   Dutchy   ;D ;D


Joe Gillespie Joe Gillespie
Posts: 528

It won't work from your hardrive, only from the server. The favicon is resized to 16 x 16 in other browsers. It works okay in Mozilla but 32 x 32 favicons can cause problems - like crashing the browser.

Bk Bk
Posts: 6

using suggested line from the article about icons, I have found that the favicon shows up in the favorites list but does not show up on the address bar unless you also include in the header the line:

<link REL="icon" HREF="favicon.ico" TYPE="image/ico">

However i still have a problem.  I have put both these lines in all pages of my site:

<link REL="icon" HREF="favicon.ico" TYPE="image/ico">
<link REL="shortcut icon" HREF="favicon.ico">

Now in mozilla firefox browser, favicon appears in favorites list and on all pages on the address bar, but using IE 5.5 only the home page and the favorites list shows the icon, other pages other than home page do not show icon in address bar.

why?

-bruce

Joe Gillespie Joe Gillespie
Posts: 528

You need to put the line on every page. The fact that putting it on the home page makes it show up in other page in some browsers should be considered a 'bonus' not an expectation.

Another thing that will catch you out is the 'cache'. You need to chear your browser cache to see what really happens.

Bk Bk
Posts: 6

well i do have those 2 lines on all pages yet the icon does not appear with IE 5.5.  in fact IE 5.5 seems flaky in this respect, now i don't have favicon for the home page either????  i am confused.

for example see page:
http://sweetfernphotography.com/butterfly-home.html

-bruce

Terakris Terakris
Posts: 23

thats cos you missed ".com" off the end of your URL in the favicon link  

Bk Bk
Posts: 6

quick eye, thanks for that hint.  you are right of course, and i fixed that now.

but i had the absolute ref to the icon only on that one page.

all other pages have relative ref, so no possibility of dropped .com throwing things off.

But still no joy IE 5.5 still does not show favicon on that or any other page, except the home page.
-bruce

Mevric Kianze Mevric Kianze
Posts: 6

So far the 32X32 ico works OK in IE6 but I have not tested it in any other browsers.

Maskodok Eko Maskodok Eko
Posts: 171

So far the 32X32 ico works OK in IE6 but I have not tested it in any other browsers.
TOP SEO | Jasa SEO Profesional

TOP SEO | Jasa SEO Profesional RajaPoker88.com Agen Texas Poker Dan Domino Online Indonesia Terpercaya IDRPoker.COM Agen Texas Poker dan Domino Online Indonesia Terpercaya POKERSTAR88.com Agen Texas Poker Dan Domino Online Indonesia Terpercaya D

You must login to reply