diff --git a/client-mu-plugins/goodbids/assets/images/goodbids-logo.png b/client-mu-plugins/goodbids/assets/images/goodbids-logo.png new file mode 100644 index 000000000..4a3b65bc5 Binary files /dev/null and b/client-mu-plugins/goodbids/assets/images/goodbids-logo.png differ diff --git a/client-mu-plugins/goodbids/src/classes/Network/Sites.php b/client-mu-plugins/goodbids/src/classes/Network/Sites.php index bff589d35..4b102e480 100644 --- a/client-mu-plugins/goodbids/src/classes/Network/Sites.php +++ b/client-mu-plugins/goodbids/src/classes/Network/Sites.php @@ -48,6 +48,7 @@ public function __construct() { // New Site Actions $this->activate_child_theme_on_new_site(); + $this->default_child_theme_logo(); } /** @@ -393,4 +394,30 @@ private function init_site_defaults( int $site_id ): void { restore_current_blog(); } + + /** + * Set the GoodBids logo on the child theme. + * + * @since 1.0.0 + * + * @return void + */ + private function default_child_theme_logo(): void { + add_filter( + 'get_custom_logo', + function ( string $html, int $blog_id ) { + if ( $html ) { + return $html; + } + + return sprintf( + '', + esc_url( home_url( '/' ) ), + esc_attr( GOODBIDS_PLUGIN_URL . 'assets/images/goodbids-logo.png' ), + ); + }, + 10, + 2 + ); + } }