Remove H1 tag from site title

Hi

I notice there are two H1 tags on my home page: http://www.broughtonschoolofmotoring.com/

Broughton School of Motoring

Driving lessons for beginners

For SEO purposes, I only want one H1 tag.

How can I stop the title (Broughton School of Motoring) outputting as H1?

Hi There,

Please create this directory in your child theme: x-child/framework/legacy/cranium/headers/views/global

After that create a _brand.php file in that directory with the following code:

<?php

// =============================================================================
// VIEWS/GLOBAL/_BRAND.PHP
// -----------------------------------------------------------------------------
// Outputs the brand.
// =============================================================================

$site_name        = get_bloginfo( 'name' );
$site_description = get_bloginfo( 'description' );
$logo             = x_make_protocol_relative( x_get_option( 'x_logo' ) );
$site_logo        = '<img src="' . $logo . '" alt="' . $site_description . '">';

?>

<?php echo '<h2 class="visually-hidden">' . $site_name . '</h2>'; ?>

<a href="<?php echo home_url( '/' ); ?>" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>">
  <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?>
</a>

Thanks for that.

I’ve done as suggested but the site title is still H1. I would like the site title to be ‘normal’ but the site description - ‘top quality driving lessons in Scunthorpe and Brigg’ - to be Hi

See http://www.broughtonschoolofmotoring.com/h1

Hi There,

Would you mind providing us with login credentials(by clicking on the Secure Note button at the bottom) so we can take a closer look? To do this, you can make a post with the following info:

  • Link login to your site
  • WordPress Admin username / password
  • FTP credentials

Thanks.

I have done the same, but it looks like my site has 2 H1 tags, not good for SEO, I have my main H1 tag in the headline, on the header, but the logo is producing another, I added the above code, but it doesnt fix it.

Hi @logoglo,

Please confirm that you named the file _brand.php and you did put it in x-child/framework/legacy/cranium/headers/views/global directory. And please check in Appearance > Themes if your child theme is active.

If you can confirm that, and the site name/logo is still generating an H1. Please create your own thread and provide us the site URL and login credentials in a secure note (not here because the original poster can see it).

How To Get Support

Thanks,