Question for favicon.ico Question for favicon.ico
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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 !