Hi Michael,
The Header Element itself isn’t able to replace the site title, unfortunately.
However, you can do this with a filter:
add_filter( 'generate_site_title_output', function( $output ) {
if ( ! is_singular() ) {
return $output;
}
return sprintf(
'<%1$s class="main-title" itemprop="headline">
<a href="%2$s" rel="home">
%3$s
</a>
</%1$s>',
( is_front_page() && is_home() ) ? 'h1' : 'p',
esc_url( apply_filters( 'generate_site_title_href', home_url( '/' ) ) ),
get_the_title()
);
} );
Let me know if that helps or not ๐