Hidden H1 Header causing 2 H1 messing with SEO

Hi Support,

Theme is giving out to H1 headers i have read the forums and i really dont understand how you access the stacks etc so i was wondering if someone can go on my site check it out and come back to me im really confused.

www.redlibertydata.com/life-insurance-leads-uk is an example the H1 header should be life insurance leads

Thanks

Sam

Hey,

I have checked your site and all looks normal. Can you send to us some screenshot about the problem?

Hi John,

As you can see from the screenshot the header is in H1-2 not H1.

Thanks

Sam

Hi There,

Please copy this file from the parent theme: x/framework/legacy/cranium/headers/views/global/_brand.php

To child theme: x-child/framework/legacy/cranium/headers/views/global/_brand.php

After that change the source code of that file to:

<?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 . '">';

?>

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

sorry i have no idea how to do what your saying where do i find x/framework/legacy/cranium/headers/views/global/_brand.php

Hi there,

You will have to install and enable the child theme to make the specified changes.

Login through FTP once the child theme is activated and create the following directory /framework/legacy/cranium/headers/views/global/ then add the file _brand.php and paste the code @thai provided in the file.

Hope this helps.

Hi Jade,

That makes a lot more sence i know how to do that now and i have done what you said but i want my H1-2 title to be my H1-1 title for seo and it still not doing this please will you assist? im happy to pay for the issue to be resolved i just need it doing

so the i dont want the visually hidden brand as my H1 title i want my actual H1 title

Hi There,

Thai’s given code should do just that, removing the visually hidden <h1>

Make sure that you named the file you created as _brand.php (not _brand.php.txt)

And make sure you place it on this directory /wp-content/themes/x-child/framework/legacy/cranium/headers/views/global/

Thanks,

i have done this still not showing as H1 Header here is my ftp can you look into it.

Its working now did i do this putting the code or did you?

Hi There,

I did not do anything, like I said previously Thai’s given code should do just what you need (remove visually hidden <h1>).

It probable your caching why the changes did not effect immediately.

Cheers!