Changing H1 Tags

Hey there,

I’m currently working with an seo company to tidy up my site and they have given me an action item labelled:
"All pages have the same H1 tag which is “Get Course | Affordable Online Courses” and inadequate header tags."

and then they have recommended this:
"Recommend utilizing the Industry/Course Name/etc… As the relevant H1 Tag. Note, only one H1 tag should be present on each page."

The problem I’m having is, they are saying the H1 tag that is currently showing up on EVERY PAGE of my site is the same but:

a) The H1 tag currently present on every page is actually coming from my site title in the Wordpress general settings. Is this supposed to happen or can I turn it off somehow?

b) Once I get rid of the Site title problem, how do change each pages H1 tag individually in this theme?

I’m not at the level of a developer and cannot afford to employ one right this second so I need to be able to solve this without doing custom coding.

Can anyone help me?

Cheers

Hello There,

Thanks for writing in!

###1.)

The h1 is displaying your site title. If you want to get rid of this h1 tag and title, since you have your child theme active and ready, please follow the following steps below:
1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
2] Insert the following code into that new file

<?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 '<h1 class="visually-hidden">' . $site_name . '</h1>'; ?>

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

3] Save the file named as _brand.php
4] Upload this file to your server in the child theme’s folder wp-content/themes/x-child/framework/legacy/cranium/headers/views/global/

###2.)
If you have h1 tags in your pages, you will have to edit the page back in Cornerstone and change the element tag in your headline element.

Hope this helps.

If I remove the site title all together, will that the search engines just pick up the next h1 on the page as the main one?

For example, I have now removed the site title on this page and the first h1 I see on the page source is now the title of the blog post. Which is what I wanted to begin with.

Thanks for getting back to me on this.

Yes, Now google search will pick up the first h1 tag.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.