Click to See Complete Forum and Search --> : [RESOLVED] Different Favicon for subfolder? Definable in CSS?


Joachim_Joe
07-03-2006, 04:17 AM
I would like to use a different favicon for a complete subfolder in my web folder. For the pages I have defined it manually it shows and works but many sites, still shows the other favicon. Is it possible to define it in the CSS, and have the CSS lookup the favicon for all the sites?

Thanks for the help in advance.

Kravvitz
07-03-2006, 04:24 AM
No, it's not possible to define it in the CSS.

Which browser(s) have you tested in?

Are you using something that looks like the following?
<link rel="shortcut icon" type="image/x-icon" href="http://www.example.com/favicon.ico">

Joachim_Joe
07-03-2006, 04:34 AM
Yes, exactly.

http://www.main-domain.com/favicon.ico
http://www.main-domain.com/subsite/favicon.ico < different icon (but it shows that of the main site)

Except for the pages I added: <link rel="shortcut icon" type="image/x-icon" href="http://www.example.com/favicon.ico">

There countless php files and I wonder if there is an easier way.
The only way I see, is to put the <head><link rel="shortcut icon" type="image/x-icon" href="http://www.example.com/favicon.ico"></head> at the top of every .php.

Kravvitz
07-03-2006, 05:47 AM
I suggest that you use PHP's include function.

Make sure that your X/HTML validates.
http://validator.w3.org/

Joachim_Joe
07-03-2006, 06:11 AM
Could you write the code for me?

I am not so familiar with php.

<php>
<head>
<link rel="shortcut icon" type="image/x-icon" href="http://www.example.com/favicon.ico">?
</head>
</php>

Something like this?

or something more like PHP Include Files (SSI)?

Kravvitz
07-03-2006, 09:04 PM
No, not like that.

Take a look at this tutorial. (http://www.joe2torials.com/view_tutorial.php?view=3)

Joachim_Joe
07-04-2006, 08:12 AM
Thanks! THe tutorial helps me. (Resolved)