diff --git a/assets/img/favicon.ico b/assets/img/favicon.ico new file mode 100644 index 00000000..59c4234f Binary files /dev/null and b/assets/img/favicon.ico differ diff --git a/functions/theme.php b/functions/theme.php index f57f5a5e..c3119034 100644 --- a/functions/theme.php +++ b/functions/theme.php @@ -5,3 +5,12 @@ function the_sunflower_theme() { echo defined( 'SUNFLOWER_THEME' ) ? 'theme--' . SUNFLOWER_THEME : 'theme--default'; } + + +function sunflower_get_site_icon_url_defaults($url, $size, $blog_id) { + + // Update the $url for the /favicon.ico file + return sunflower_parent_or_child( 'assets/img/favicon.ico' ); +} +// add the filter +add_filter( "get_site_icon_url", "sunflower_get_site_icon_url_defaults", 10, 3 );