How to change the favicon on Modern sites?

Share on print
Share on facebook
Share on linkedin
Share on whatsapp
Share on email
  1. Open the PowerShell command line
  2. To establish a connection, execute
Connect-PnPOnline -UseWebLogin -Url https://<your-tenant>.sharepoint.com/sites/<target-site>
  1. To enable the extension, execute
Add-PnPCustomAction -ClientSideComponentId "cd08c4a0-649b-43cd-a561-b93f46a6f1b6" -Name "DynamicFavicon" -Title " DynamicFavicon" -Location ClientSideExtension.ApplicationCustomizer -ClientSideComponentProperties: '{"faviconUrl":"https://<your-tenant>.sharepoint.com/sites/beezy/Style%20Library/images/beezy/beezy-logo-ico.ico"}' -Scope site
In the Modern installation scripts, it is configured to point to the favicon in Classic (same scripts as above).