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

Questions answered by this recipe

How do I add a Favicon to my PmWiki?

Adding a Favicon to PmWiki.

Add the following line 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" />

Alternatively, you can use $HTMLHeaderFmt to place these statements in config.php instead of editing the templates.

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.

The image type may be changed to use another image type, viz type="image/png"


See Also

Cookbook /
ExternalLinksFavicons  Display favicons before links to external websites (Beta)
WebsiteIcon  Add browser website icon (favicon) from config.php (Working)

Contributors

Simon

Comments

See discussion at Favicon-Talk

User notes +3: If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.


Page last modified on December 23, 2021, at 06:48 AM