H1 Change heading

Hello,

I have two h1 headings that I would like to change to h2. Have also analyzed, see appendix.
Question: How can I change this two h1 heading for all the subpages on h2.?

Would like my headings to be structured correctly.

Thanks in advance for the support.

My Wesite:

Hi There,

Please navigate to your child theme folder then create this directory: /framework/legacy/cranium/headers/views/global/

After that creating a new _brand.php file 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>

Hello ,
Thank you for your response.
Unfortunately, I am an absolute beginner and do not know exactly:
a) where I should create the new directory
b) how and where to create a new brand.php file
c) where exactly do I paste the code.

I am sorry that I ask such simple questions in your eyes.

Thanks for your support.

Many greetings from Berlin

Hi There,

Please go through our guide on how to setup a child theme (https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57).

Then you need to create _brand.php file inside your child theme.
/wp-content/themes/x-child/framework/legacy/cranium/headers/views/global/_brand.php

Then you should be able to follow the guide above.

Thanks!

Hallo,

habe über den FTP den Ordner gefunden. Allerdings nicht unter x-kind sondern x, siehe Bild. Ist das ok? Wie erzeuge ich eine neue brand_php Datei. Die alte erst löschen, dann eine neue Datei erstellen und reinkopieren?
Soll ich den folgenden Code dann löschen in der Datei ?

<?php echo '

' . $site_name . '

'; ?>

Vielen Dank !!!

That is the parent theme. You should setup a child theme first. Please go to the link my colleague posted previously. If you’re unsure how to do this, I recommend you hire a developer to do this for you moreover that we do not have support for customizations.

BUT, please consider not modifying this at all. If you’re concern is SEO, having 2 h1s won’t hurt since X uses HTML5 and it is logically correct. If you want the reason behind that, please see this article. Here’s another article.

Here are other useful links I recommend you take a look.


https://moz.com/community/q/how-will-it-effect-seo-to-have-multiple-h1-tags-on-a-page

https://moz.com/community/q/multiple-h1-tags-for-different-section-on-one-webpage-in-html5-website-should-i-have-only-one

Thanks.