Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1243600
    Adam J
    Participant

    Site: http://www.mbjarvie.co.uk

    As per title.
    I presume this is the result of a recent update?
    I guess this element is causing the duplicate H1 issues:

    <h1 class=”visually-hidden”>M B Jarvie</h1>

    How do I get rid of this to keep my SEO happy?

    Thanks

    #1243665
    Paul R
    Moderator

    Hi Adam,

    Thanks for writing in!

    To get rid of it, create file _brand.php in wp-content/themes/x-child/framework/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>
    

    Kindly note that you need to set-up a child theme first before doing this.

    https://community.theme.co/kb/how-to-setup-child-themes/

    Thanks

    #1245865
    Adam J
    Participant

    Many thanks. That worked a treat 🙂

    #1245884
    Thai
    Moderator

    If you need anything else please let us know.

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