Favicon
Strapi's admin panel displays its branding on various places, including the logo and the favicon. Replacing these images allows you to match the interface and application to your identity.
To replace the favicon:
-
Create a
/src/admin/extensions/
folder if the folder does not already exist. -
Upload your favicon into
/src/admin/extensions/
. -
Replace the existing favicon.png|ico file at the Strapi application root with a custom
favicon.png|ico
file. -
Update
/src/admin/app.[tsx|js]
with the following:./src/admin/app.jsimport favicon from "./extensions/favicon.png";
export default {
config: {
// replace favicon with a custom icon
head: {
favicon: favicon,
},
},
}; -
Rebuild, launch and revisit your Strapi app by running
yarn build && yarn develop
in the terminal.
This same process may be used to replace the login logo (i.e. AuthLogo
) and menu logo (i.e. MenuLogo
) (see logos customization documentation).
Make sure that the cached favicon is cleared. It can be cached in your web browser and also with your domain management tool like Cloudflare's CDN.