Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1283220
    Theresa K
    Participant

    Hello there,

    I recently crawled through my site and realized we had duplicate h1s, which is not good for accessibility and SEO. I’m thinking the duplicate comes from the logo or the page name, but I’m not 100% sure.

    The site is: beforeage18.org and the duplicate H1 is beforeage18.org.

    I did go through different forum entries to troubleshoot this on my own and added code to _brand.php but it didn’t solve the problem completely. It seems it only targets a few pages.

    <?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 ( is_front_page() ) ? '' : ''; ?>
    
    <a href="<?php echo home_url( '/' ); ?>" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>">
      <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?>
    </a>

    Thanks for your help.

    #1283342
    Thai
    Moderator

    Hi There,

    Upon checking your home page, I could see there is only <h1> tag.

    Could you please double check again?

    Thanks.

    #1283789
    Theresa K
    Participant

    I just checked and noticed the issue was resolved 🙂

    #1283821
    Nico
    Moderator

    Happy to hear that.

    Feel free to ask us again.

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1283220 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>