Add H1 to the logo on homepage

Hi there, how to add H1 tag to the logo? Goal is to have 1 H1 at the homepage
Thx

Hello,

Can you please provide a link to your website?

Kind Regards, Roman.

Thx a lot

Finally its only importand to set one H1 on the homnepage, where all the posts are listed

Hello,

You can try to edit header.php file and add the following code between line 50 and 51.

				<?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
				<<?php echo $heading_tag; ?> class="site-title">
					<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
						<?php bloginfo( 'name' ); ?>
					</a>
				</<?php echo $heading_tag; ?>>

But please make a backup first. Also please note that you should override modified .php file in a child theme to avoid losing modifications after theme update.

Kind Regards, Roman.