Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

Favicon

Summary: Add a Favicon to your website
Version: Any
Prerequisites: Requires modification of skin template
Status: Mature
Maintainer:
Categories: Layout

Questions answered by this recipe

How do I add a Favicon to my PmWiki?

Adding a Favicon to PmWiki.

Add the following lines to the pmwiki.tmpl template between the <head> and </head> lines. The template can be found in the /pub/skins/yourskin/ directory

<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />

Create a favicon.ico from a graphic. To create a Favicon from an graphic or picture try http://htmlkit.com/services/favicon/ .

Place the favicon.ico to the base directory of your website (often /public_html/).

If you wish to place your Favicon in another directory change the href= in the lines above to href="/pathto/favicon.ico" and place the Favicon in that directory.

Comments

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.

See Also

Contributors

Simon

Edit - History - Print - Recent Changes - Search
Page last modified on October 09, 2007, at 10:58 AM