Change default favicon programmatically I know I can load a favicon though the user interface, but is there a way of setting the default favicon for your theme, so that when someone enables the theme, the default icon is immediately used?
You can place the favicon.ico in your theme folder (at the same level as your_theme.info) and it will be used automatically.

Works for Drupal 6, 7 &amp; 8.

Note: The favicon is heavily cached by some browsers, you may need to go to extra lengths to see the new one.