coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: littletomfool on November 23, 2004, 10:59:44 AM

Title: Question for favicon.ico
Post by: littletomfool on November 23, 2004, 10:59:44 AM
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~~~ :-*
Title: Re: Question for favicon.ico
Post by: Nibbler on November 23, 2004, 11:18:05 AM
If you put it at the root of your site it will be found automatically, you don't need to make any code changes.
Title: Re: Question for favicon.ico
Post by: Joachim Müller on December 03, 2004, 04:13:15 PM
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
Title: Re: Question for favicon.ico
Post by: chtito on December 03, 2004, 04:51:46 PM
The recommended (http://en.wikipedia.org/wiki/Favicon") 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).