Table of Contents

DokuWiki Favicons

Return to DokuWiki Customization, DokuWiki Configuration, DokuWiki Logo Customization, DokuWiki

There are a number of types of favicons - the //favicon.ico// which combines a number of different size images into a single file used in the browser tab and bookmarks, individual PNG images used for various purposes (e.g. apple-touch/Web Clip), and animated favicon GIF images.

The default //favicon.ico// used with DokuWiki contains 8-bit PNG images of the dimensions 16x16px, 32x32px, and 48x48px.

DokuWiki uses the //favicon.ico// from //$DokuWiki/lib/tpl/images// to generate the image used for Opensearch if a viewer wishes to add a custom search engine for a DokuWiki site.

Custom favicons

Favicons for the browser tab

If you wish to replace the default DokuWiki //favicon.ico// with your own you can place it in any of these places:

By default DokuWiki has a //favicon.ico// file in //$DokuWiki/lib/tpl/dokuwiki/images//

The following rules apply:

Here you can find a tutorial how to generate a multi-resolution favicon with GIMP: https://www.catalyst.net.nz/news/creating-multi-resolution-favicon-including-transparency-gimp | catalyst.net

Animated Favicons for the browser tab

If you'd like to display an animated gif

instead of a static icon in the browser tab **and** you are using the default dokuwiki template (theme)3):-

wiki it is recommended to make the wiki (or root) namespace world readable in the ACL settings or your logo is not shown to not logged in users.</code> to

will be automatically used. You can also upload a ''favicon.ico'' or an ''animated_favicon.gif'' there.
If you use a closed wiki it is recommended to make the ''wiki'' (or root) namespace world readable
 in the ACL settings or your logo is not shown to not logged in users.

 - Place your ''animated_favicon.gif'' in any of locations DokuWiki looks for favicons.ico files and refresh your browser. 


If you'd like to help test how DokuWiki favicons are used for various things in different browsers you can download https://scottferguson.com.au/uploads/files/test_favicons.zip | this zip archive containing //favicon.ico// files with Red, Yellow, and Green backgrounds. Each //favicon.ico// has a 16×16, a 24×24, a 32×32, a 64×64, and a 128×128 pixel PNG images in it. All are 24-bit, and display a number corresponding to their dimensions so you can see which size is used by various browser themes.

https://www.dokuwiki.org/tips:favicons

1)
NOTES: only tested with the default DokuWiki theme/template; this location may be overwritten on upgrades
2)
NOTE: the same rules may not apply to the //favicon.ico// used to generate the image used for Opensearch
3)
NOTE: a similar process will probably work with other themes - I haven't tested