Advanced search  

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

Pages: [1]   Go Down

Author Topic: Question for favicon.ico  (Read 3727 times)

0 Members and 1 Guest are viewing this topic.

littletomfool

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Question for favicon.ico
« 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~~~ :-*
Logged

Nibbler

  • Guest
Re: Question for favicon.ico
« Reply #1 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Question for favicon.ico
« Reply #2 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
Logged

chtito

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 186
  • I run Mac OS X, despite the penguin ;)
Re: Question for favicon.ico
« Reply #3 on: December 03, 2004, 04:51:46 pm »

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

Code: [Select]
<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).
Logged
Vous pouvez poser vos questions en français sur le forum francophone !
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.