Simplistic templating for adding favicons for multiple devices
An extension to allow an easy templating system to add favicons for multiple devices.
Generate your favicons using favicon-generator. This will provide you with a zip file of all the different files required.
You can use other online sources, however due to the different file naming of the different sites, you may have to create your own template with the appropriate code.
Copy the generated icons to a path in your project (eg:
favicons/). Then in the
<head> of your
Page.ss, add the following code:
The favicon template code is cached, so if you change your favicon path then you must do a
- SilverStripe 4+
composer require axllent/silverstripe-favicons