- Posts: 115
Solved
Howto use own favicons in webtrees 2.0
- jopla
-
Topic Author
- Offline
- Junior Member
-
How can I use own favicons in 2.0? Is sufficient to replace the favicons in the public folder or has there to be done more?
Thanks
Please Log in or Create an account to join the conversation.
- fisharebest
-
- Offline
- Administrator
-
That should work - although you must repeat this after every upgrade.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- jopla
-
Topic Author
- Offline
- Junior Member
-
- Posts: 115
Is there also a better solution, or has that to be still involved in the 2.0 version? If yes, is there an ambition to do it?
Please Log in or Create an account to join the conversation.
- fisharebest
-
- Offline
- Administrator
-
For example, the file favicon.ico must exist for sites *without* pretty URLs.
But it must *not* exist so that it can be customized by sites *with* pretty URLs.
Unless the rewrite rule is changed from "if path does not exist" to "if path does not start /public".
Also, we need to update our list of favicons, to reflect modern browsers.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- rola
-
- Offline
- Senior Member
-
- Posts: 278
I am often saying on this forum "in 1.7 this worked better" - favicons are in v 2.0 simplier to handle, there is also a workaround which cann help. Whats realy good - favicons are in one directory and not in the theme-directories.
Ladislav
Ladislav
webtrees 2.0.24 + ⚶ Vesta modules (from cissee.de/ )
testing webtres 2.1.5 + ⚶ Vesta modules
on PHP Version 7.4.28
Please Log in or Create an account to join the conversation.
- jopla
-
Topic Author
- Offline
- Junior Member
-
- Posts: 115
Thanks for your reaction. I understand the problems but I hope it will be done in the future.
Or that you will not make to often an update


Please Log in or Create an account to join the conversation.
- bertkoor
-
- Offline
- Platinum Member
-
- Greetings from Utrecht, Holland
Clone the webtrees git repository. Create your own branch and do your changes in there. Regulary merge the master or 2.0.x branch into your own branch. Make a local build of minified assets like javascript & css. Deploy manually to your server from your own repository.
It's a trade-off. You get to store your own enhancements under version control, but you also need to learn some development tools.
stamboom.BertKoor.nl runs on webtrees v2.2.1
Please Log in or Create an account to join the conversation.
- fisharebest
-
- Offline
- Administrator
-
I want to get the design right first.
For example, I am not certain that this should be part of a theme.
You might want to add your own favicon, but still allow users to switch themes.
Or perhaps you want to use your own icon with a third-party theme.
The module system was designed to allow lists of zero/one/more features (tabs, blocks, etc.).
It wasn't designed for "select one thing from a list". e.g. what happens if you install two "custom favicon" modules?
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- jopla
-
Topic Author
- Offline
- Junior Member
-
- Posts: 115
bertkoor wrote: There might be a solution for these kind of issues, basically for any small change you want to make to core code.
Clone the webtrees git repository. Create your own branch and do your changes in there. Regulary merge the master or 2.0.x branch into your own branch. Make a local build of minified assets like javascript & css. Deploy manually to your server from your own repository.
It's a trade-off. You get to store your own enhancements under version control, but you also need to learn some development tools.
Not a bad idea, only I m not so familiar with GitHub. But if you can help me a little - in Dutch - than I want to try. I have some experience - with other applications - with sending my suggestions to the main, but to sent the main to mine, I 've never done.
@Greg: Yes, I can understand that there are a few more important challenges.
Please Log in or Create an account to join the conversation.
- bertkoor
-
- Offline
- Platinum Member
-
- Greetings from Utrecht, Holland
Contact me by email ( bertkoor at gmail.com ) and I'll send you some instructions.
First question: do you work on a Mac or Windows pc?
Second: do you rather use command line tools or GUIs?
stamboom.BertKoor.nl runs on webtrees v2.2.1
Please Log in or Create an account to join the conversation.
- jopla
-
Topic Author
- Offline
- Junior Member
-
- Posts: 115
Please Log in or Create an account to join the conversation.
- jopla
-
Topic Author
- Offline
- Junior Member
-
- Posts: 115
Please Log in or Create an account to join the conversation.
- rogerco
-
- Offline
- New Member
-
- Posts: 4
/resources/views/layouts/default.phtml
You can simply replace all the specific favicon sizes there with your own names, links and meta tags for the various sizes of favicon you have for android apple ms and generic use
I use the online tool at realfavicongenerator.net/ to generate a complete set of icons, it provides options to optimise for various uses from a single image file. There are probably other online services available.
Ideally a future version of webtrees would work with some tool like this so that a whole set of favicons and the html to link them could be uploaded and then it wouldn't matter what particular set you used.
Essentially any images, browserconfig.xml and site.webmanifest files could be uploaded to /public/ by the site admin together with an .html file called something like favicon.html which would be automatically inserted into default.phtml. That way webtrees could provide a default set and the site admin could replace it with whatever he liked without things breaking on upgrade (assuming you don't wipe the public folder - or use some other folder that you don't wipe on upgrade)
Please Log in or Create an account to join the conversation.
- RickM
-
- Offline
- Junior Member
-
Rick M
Tauranga
Nu Tirani - New Zealand
alineofmalkins.com/wt-malkins
Webtrees v2.2.1
Hosted by HostAmarada on litespeed Server, PHP v8.3
Offline: WebTrees v2.2.2-dev
Laragon v6, PHP v8.3.15
Please Log in or Create an account to join the conversation.