axllent / silverstripe-favicons
Simplistic templating for adding favicons for multiple devices
Installs: 3 860
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 4
Forks: 1
Open Issues: 0
Language:Scheme
Type:silverstripe-vendormodule
Requires
- silverstripe/cms: ^4.0 || ^5.0
This package is auto-updated.
Last update: 2024-12-15 04:34:28 UTC
README
An extension to allow an easy templating system to add favicons for multiple devices.
Requirements
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.
Usage
Copy the generated icons to a path in your project's public folder (eg: favicons/
). Then in the <head>
of your Page.ss
, add the following code:
$Favicons("favicons/")
The favicon template code is cached, so if you change your favicon path then you must do a ?flush
.
Requirements
- SilverStripe ^4 || ^5
Installation
composer require axllent/silverstripe-favicons