Setting the Favicon

This page suggests that setting the Favicon should be straightforward, except I cannot get it to work!

https://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FControlPanel%2FWikiInformation

I have tried various image formats in the _canonical_uri field (png, jpg and bmp) but none are recognised. Do I need to convert my image to another format? As there size requirements. I assume the image can be added to the wiki in the normal way.

The way I did it recently was, I drag & dropped an image on my TW and in the import dialog set its name to $:/favicon.ico.

I don’t think it even needed a restart.

1 Like

I think it is the instruction

_canonical_uri field of the $:/favicon.ico tiddler

that is the problem. Maybe it works for external images, but your method certainly worked for me.

It’s not clear to me that you mean by that. You dont set image formats in the _canonical_uri, you set URIs

eg, in one of mine I have that field set to

https://upload.wikimedia.org/wikipedia/commons/thumb/archive/5/56/20060314215022%21Answer_to_Life.png/120px-Answer_to_Life.png

…which then renders as the favicon correctly. (noting that the type field of $:/favicon.ico needs to match for the image to render when that tid is viewed within TW, but will work as a favicon to the browser even if the type is wrong (I just noticed mine had type to text/vnd.tiddlywiki. The favicon worked, but setting it to image.png meant it also worked within TW

Perhaps, I should have just said ‘images’!