Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1075931
    Anonymous
    Inactive

    Hi,
    I’m using the standard integrity 1 layout with a static front page, and there are two H1 tags. One of them is the website name itself (the logo location)

    This is bad SEO practise as h1 tag has to be just 1 . Can you please tell me how can i remove the h1 from the website name?

    ps – please change this from your default layout, just a suggestion.

    #1076046
    Friech
    Moderator

    Hi There,

    Thanks for writing in and for the feed back. On your child theme’s \x-child\framework\views\global\ directory, create a file named _brand.php and paste the code below on it.

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

    Then find this line:

    <h1 class="visually-hidden">' . $site_name . '</h1>

    You can update that <h1> tag to <h2> or <span>

    Hope it helps, Cheers!

    #1077997
    Anonymous
    Inactive

    I don’t have a child theme… i use x theme’s default layout. And according to the theme pus points, “SEO” was mentioned as a point in the theme details. This can in a way be said as “not providing as specified”. Using cornerstone is not so flexible either, as was mentioned in the theme intro.

    I’m not too much of a programmer, and i can’t really know what else is going wrong with the seo in the theme.
    I’m sorry, but i’ll ask you for a refund.

    #1078210
    Alexander
    Keymaster

    Hi again,

    Would you mind posting a link to your site? I’ve double checked this, and by default X does not output multiple H1 tags. In the header, it outputs a hidden H1 for your site title, but this is not present on other named pages.

    Taking a look at the Integrity 1 demo, there is a single H1 tag on the home page, and other pages.

    Also, on any posts, the H1 tags are within an article element. This creates a new context, and according to HTML5 standards is not an SEO concern because all heads are considered part of that article. For example: http://stackoverflow.com/questions/24986162/html5-nested-sections-and-heading-tags/24987792#24987792
    http://webdesign.tutsplus.com/articles/the-truth-about-multiple-h1-tags-in-the-html5-era–webdesign-16824

    #1078236
    Anonymous
    Inactive
    This reply has been marked as private.
    #1078363
    Joao
    Moderator

    Hi There,

    We are sorry to hear that.

    Feel free to ask us any questions if ever decide to use X again.

    All the best

    Joao

    #1078368
    Anonymous
    Inactive

    Thanks for understanding.

    #1078415
    Joao
    Moderator

    No problems

    Thanks for trying X Hopefully you will come back to us again 🙂

    Have a great weekend!

    Joao

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