Title: Tagging error in header.php
Last modified: August 5, 2023

---

# Tagging error in header.php

 *  [MarjoriesDaughter](https://wordpress.org/support/users/marjoriesdaughter/)
 * (@marjoriesdaughter)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/tagging-error-in-header-php/)
 * The code in header.php show that the page title for inside pages should be an
   h3 tag. This is not good for SEO. All page titles should be h1.
 *     ```wp-block-code
       <div id="header-text" class="<?php echo $screen_reader; ?>">
       <?php if ( is_front_page() || is_home() ) : ?>
          <h1 id="site-title">
            <a href="<?php echo esc_url( home_url( '/' ) ); ?>"
                                          title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"
                                          rel="home"><?php bloginfo( 'name' ); ?></a>
           </h1>
       <?php else : ?>
         <h3 id="site-title">
           <a href="<?php echo esc_url( home_url( '/' ) ); ?>"
                                          title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"
                                          rel="home"><?php bloginfo( 'name' ); ?></a>
          </h3>
       <?php endif;
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Barsha Paudel](https://wordpress.org/support/users/barsha04/)
 * (@barsha04)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/tagging-error-in-header-php/#post-16979646)
 * Hi [@marjoriesdaughter](https://wordpress.org/support/users/marjoriesdaughter/),
 * Thanks for reaching us,
 * In order to better assist you, could you please provide us with the URL of your
   website? Once we have the URL, we’ll be able to investigate the problem and provide
   you with a more accurate solution.
 * Regards
 *  Thread Starter [MarjoriesDaughter](https://wordpress.org/support/users/marjoriesdaughter/)
 * (@marjoriesdaughter)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/tagging-error-in-header-php/#post-16980499)
 * Thank you for the reply! I don’t need help with this. I am just letting you know
   that you have an error in your code.
   I corrected the problem in the line
 *     ```wp-block-code
       <h3 id="site-title">
       ```
   
 * To be h1 in the child theme.
 *  [Barsha Paudel](https://wordpress.org/support/users/barsha04/)
 * (@barsha04)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/tagging-error-in-header-php/#post-16990991)
 * Hi [@marjoriesdaughter](https://wordpress.org/support/users/marjoriesdaughter/),
 * Glad to hear that you have fixed the issue with the Heading tags within the child
   theme. I will discuss with the developer team on this matter and if this is an
   issue we will be fixing in the upcoming version of theme released.
 * Let me know of any other issues or confusion and I will be back.
 * Regards

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Tagging error in header.php’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/spacious/1.9.12/screenshot.jpg)
 * Spacious
 * [Support Threads](https://wordpress.org/support/theme/spacious/)
 * [Active Topics](https://wordpress.org/support/theme/spacious/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/spacious/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/spacious/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Barsha Paudel](https://wordpress.org/support/users/barsha04/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/tagging-error-in-header-php/#post-16990991)
 * Status: not resolved