Favicon-Talk

Summary: Talk page for Favicon.
Maintainer:
Users: +3 (View / Edit)

This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.

pjv October 9, at 15:55 GMT

Note that if you're using CleanUrls, you will probably also have to alter the .htaccess file to allow favicon.ico through. I had to add this line for it to work:
# Let favicon.ico through.
RewriteRule ^favicon\.ico$   favicon.ico  [L]
No guarantees though, as I'm no expert in this area.

emmt October 29, 2009 at 07:23 UTC

I was not able to locate where exactly to put the favicon.ico file. The problem can be easily fixed by using PmWiki variables, such as $PubDirUrl or $SkinDirUrl in the template file of the theme. For instance, I've put the icons in the skin directory and modified the template file to be:
  <link rel='shortcut icon' href='$SkinDirUrl/favicon.ico' type='image/x-icon' />
  <link rel='icon' href='$SkinDirUrl/animated_favicon1.gif' type='image/x-icon' />
Note in passing that I am using an animated icon for the browser URL bar. This animated icon is build by the service at http://htmlkit.com/services/favicon/. If you don't want to use an animated icon, replace animated_favicon1.gif by favicon.ico in the example above.
One advantage of using PmWiki variables is that you can keep a cleaner directory structure and have the favicon pictures in the same place as the current theme files.

Historically the favicon is placed in the document root[1] (eg public_html as documented above) simon October 29, 2009, at 10:31 PM

Talk page for the Favicon recipe (users).