How to remove double H1 on Single Post Blog Pages

Hi Guys,

is it possible to remove the double h1? www.naehratgeber.de ?

Hello @friendworx,

Thanks for asking. :slight_smile:

I don’t see double H1 tag on your website. Main title i.e Der Ratgeber rund ums Nähen, Sticken, Plotten, Quilten…
is a H2 title. And after that I can see two blockquotes. Can you please confirm? https://screencast.com/t/b8SggQuwaCQ

Thanks.

Hi,

look view-source:https://www.naehratgeber.de/anfang-und-ende-mit-der-covermaschine-2266/

Hi,

To remove double h1, create file _brand.php in wp-content/themes/pro-child/framework/legacy/cranium/headers/views/global and copy the code below into that 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 . '">';

?>

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

Hope that helps

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