diff --git a/classes/Utils.php b/classes/Utils.php index 95cd9bf4f6..c3e8fe7f29 100644 --- a/classes/Utils.php +++ b/classes/Utils.php @@ -8712,6 +8712,10 @@ public function convert_date_into_wp_timezone( string $date ): string { public function tutor_custom_header() { global $wp_version; if ( version_compare( $wp_version, '5.9', '>=' ) && function_exists( 'wp_is_block_theme' ) && wp_is_block_theme() ) { + $theme = wp_get_theme(); + $theme_slug = $theme->get( 'TextDomain' ); + $header_theme_block = do_blocks( '' ); + ?> > @@ -8723,9 +8727,7 @@ public function tutor_custom_header() {
get( 'TextDomain' ); - echo do_blocks( '' ); + echo $header_theme_block; } else { get_header(); }