/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Different Favicon for subfolder? Definable in CSS?

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.

to post a comment
CSS

6 Comments(s)

Copy linkTweet thisAlerts:
@KravvitzJul 03.2006 — 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">
Copy linkTweet thisAlerts:
@Joachim_JoeauthorJul 03.2006 — 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.
Copy linkTweet thisAlerts:
@KravvitzJul 03.2006 — I suggest that you use PHP's include function.

Make sure that your X/HTML validates.

http://validator.w3.org/
Copy linkTweet thisAlerts:
@Joachim_JoeauthorJul 03.2006 — 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)?
Copy linkTweet thisAlerts:
@KravvitzJul 04.2006 — No, not like that.

[url=http://www.joe2torials.com/view_tutorial.php?view=3]Take a look at this tutorial.[/url]
Copy linkTweet thisAlerts:
@Joachim_JoeauthorJul 04.2006 — Thanks! THe tutorial helps me. (Resolved)
×

Success!

Help @Joachim_Joe spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...