Question for favicon.ico Question for favicon.ico
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Question for favicon.ico

Started by littletomfool, November 23, 2004, 10:59:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

littletomfool

Dear All,

I have creat a favicon.ico, can anyone teach me how to add the code in the PHP file?? do I need to edit every php file or just one file is OK??

<head>
<link rel="shortcut icon" href="favicon.ico" > <---- THIS ONE
<title>My Albums</title>
</head>


Thanks~~~ :-*

Nibbler

If you put it at the root of your site it will be found automatically, you don't need to make any code changes.

Joachim Müller

To add to what Nibbler said: edit themes/yourtheme/template.html and add the line you're refering to right after the <head>. This may be especially helpfull if you experience issues with IE or if you're on a subdomain...

Joachim

chtito

The recommended way is to write the following in the header part of the template.html file:

<link rel="icon" type="image/png" href="/path/image.png" />

With that syntax you can use any format of icon you want, not only .ico. Besides, if you change your favicon, it will be updated on all the clients that read your page (if you use favicon.ico, the browser will not check for the changes in your favicon, as explained in the link above).
Vous pouvez poser vos questions en français sur le forum francophone !