• 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.

    <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)
  • Hi @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

    (@marjoriesdaughter)

    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

    <h3 id="site-title">

    To be h1 in the child theme.

    Hi @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.