SEO Reports Show No h1 tag in use


Hey there!

Even after reviewing the other forum suggestions, adding the correct hierarchy tags to my page is still a mystery. These listed SEO reports show I’m not using <h1> tags or not using them correctly: and and

I’m guessing this is because I’m not showing my Site Title or Subtitle and only using my logo in the header but maybe you can suggest a fix. Thanks!


Hello there,

> I’m guessing this is because I’m not showing my Site Title or Subtitle and only using my logo in the header but maybe you can suggest a fix.

Since the site logo is set, the site title H1 tag is altered with it. To pretend your site remains having this H1 tag, you have to edit the header.php file in child theme mode. Insert this code:

<h1 class="site-title" style="position:absolute; top:-9999px;"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>

after this line:

<?php if ( get_theme_mod('site_logo') ) : ?>

If you haven’t yet run a child theme, you might be interested to use our premade Sydney child theme that can be downloaded from this link.



Okay, done and done.
Bad news though: I’m still getting the same error from the site validators. (Thanks for the pre-built child theme!)

Can we just convert the h2 tags to being the h1 tags or will that really mess things up?



Flexible Times

Purely Delightful


Voted Best Pet Service of 2016

Our services

60 Minute Dog Run : $40

90 Minute Dog Run : $60

60 Minute Trail Hike : $32


Hello there,

I checked your site with another tool. It is displaying there is no issue with the H1 tag; it detects the new H1 tag you inserted. Please check with this tool:

The tool you used might have cache system that’s why it won’t read the change you’ve done.



Hello Kharis,
I´m having the same issue with my website. I checked it with many SEO tools (including one that you suggested in another forum) but all of them say the same: I have no h1 tag and a lot of h2 tags.

Could you help me to fix it? The website is:

Thanks very much in advance,


Hello Lorenna,

I would like to apologize in advance for the long delay.

Since you’re running Astrid theme, which has different markup with Sydney, to achieve the same result, you can add the below function into your child theme’s functions.php file or you can use the My Custom Functions plugin.

add_action('get_custom_logo', 'astrid_child_logo_image', 2, 10);
function astrid_child_logo_image($html, $blog_id) {

	$html = '';

	$custom_logo_id = get_theme_mod( 'custom_logo' );

	// We have a logo. Logo is go.
	if ( $custom_logo_id ) {
		$html  = '';
		$html .= sprintf( '<h1 class="site-title" style="position:absolute; top:-9999px;"><a href="%1$s" class="custom-logo-link" rel="home" itemprop="url">%3$s</a></h1><a href="%1$s" class="custom-logo-link" rel="home" itemprop="url">%2$s</a>',
			esc_url( home_url( '/' ) ),
			wp_get_attachment_image( $custom_logo_id, 'full', false, array(
				'class'    => 'custom-logo',
				'itemprop' => 'logo',
			) ),
			get_bloginfo( 'name' )

	return $html;




Hello, Kharis.

Thanks for your answer.
I tried the code you sent at the plugin but it still not working. I keep not having H1 tag and 6 H2 tags. I should paste the code exactly as you sent me, right? Or should I change something?

Thank you very much!


Hi Lorenna,

Could you please confirm if the custom function has been turned on?



Hi Kharis,

Yes, I turned it on/off twice and waited 24 hours but it is still not working.



Could you please confirm if you’re running the latest version of Astrid theme?



Hi Kharis,

I´m running the version 1.04. Is this the latest one? No updates requests appear on my dashboard, so I´m assuming this is the latest version, right?

Thank you very much!


Hello there,

Please share me the admin access to your site, if you want me to this task for you. If so, you can share the username and password along with the login URL to your site’s admin (/wp-admin) to my email Mention the link to this topic in your email body.



Hi Kharis,
I have the same problem showing no h1 tag on my home page:
I inserted the code you mentioned in my sydney header.php but it still does not show a h1 tag.
(seo tool says that the h2 tag is used twice for “Virtuelle Assistenz”, which is pretty weird).

<?php if ( get_theme_mod(‘site_logo’) ) : ?>
<h1 class=“site-title” style=“position:absolute; top:-9999px;”>" rel=“home”><?php bloginfo( ‘name’ ); ?></h1>
" title="<?php bloginfo(‘name’); ?>">" alt="<?php bloginfo(‘name’); ?>" />
<?php else : ?>

Thanks so much in advance for your help, much appreciated.
Best, Isabel


Hello there,

I inspected your site, the H1 tag is really there, but it’s visually hidden. To verify, you can use this tool to check heading tags in your site.



Thanks so much for your quick response. Actually I would like to have the h1 tag instead the h2 tag for “Virtuelle Assistenz”. Could you help me here, is there a code to change it?
Thank you!


Sorry, I couldn’t exactly get it. Did you mean this one?



yes, exactly, sorry for the confusing explanation :wink:


I changed this h2 tag into a h1 tag in the slider.php, but it’s still not showing a h1. Do I have to change it somewhere else? Thanks so much


Did you edit it in child theme? If so, please share that file to and post its link here, so I can inspect it.



Yes, I did edit it in the child theme:

Thank you for checking