Removing "H1" Tag from Renew Stack; Blank H2 on All Posts, Missing H1 on others

Hello X Theme Support

Back in November I purchased the x theme and instantly installed the “Renew 8 Demo”.
I noticed that there appeared to be a heading titled “The Blog” on all my posts and on the homepage.
I reached out to support to help me remove it, here is that thread

I’ve since been looking at my SEO, and noticed that I am experiencing the following:

  1. All my articles have an empty and blank H2: e.g. here’s how one of my posts looks from a Google perspective

  2. Several of my pages, e.g. my Contact Page, is missing the H1 Tag altogether.

How can I resolve both of the issues:

a) Remove the empty H2 entirely, and

b) Add the H1 tag for those pages,

Thanks in advance, appreciate the help.

Hello Jeremy,

Thanks for asking. :slight_smile:

It’s difficult for us to support issues arising because of Customizations as it falls outside the scope of support we can offer. However, can you share the login details in secure note? Let me take a look at the changes that’s been made into the child theme and accordingly we will point you in right direction.

Thanks.

Hi Prasant,

Thanks for your response.

Unfortunately I am unable to provide login details.

Heres the changes I have made to the child theme.

  1. Added this Additional CSS:

.blog header.x-header-landmark, .single-post header.x-header-landmark {
display: none;
}
.entry-title:before {
content:" " !important;
}

  1. Brought accross the files from: x\framework\legacy\cranium\headers\views\STACK and then made the changes to the landmark file: changed all the h1 tags to h2

Hope this helps,

Thanks

Hello Jeremy,

Please make sure that your landmark header file has this code:

<?php

// =============================================================================
// VIEWS/RENEW/_LANDMARK-HEADER.PHP
// -----------------------------------------------------------------------------
// Handles content output of large headers for key pages such as the blog or
// search results.
// =============================================================================

$disable_page_title = get_post_meta( get_the_ID(), '_x_entry_disable_page_title', true );
$breadcrumbs        = x_get_option( 'x_breadcrumb_display' );

?>

<?php if ( ! x_is_blank( 1 ) && ! x_is_blank( 2 ) && ! x_is_blank( 4 ) && ! x_is_blank( 5 ) ) : ?>
  <?php if ( is_page() && $disable_page_title == 'on' ) : ?>

  <?php else : ?>

    <header class="x-header-landmark">
      <div class="x-container max width">
        <div class="x-landmark-breadcrumbs-wrap">
          <div class="x-landmark">

          <?php if ( x_is_shop() || x_is_product() ) : ?>

            <h1 class="h-landmark"><span><?php echo x_get_option( 'x_renew_shop_title' ); ?></span></h1>

          <?php elseif ( x_is_bbpress() ) : ?>

            <h1 class="h-landmark"><span><?php echo get_the_title(); ?></span></h1>

          <?php elseif ( x_is_buddypress() ) : ?>
            <?php if ( x_buddypress_is_component_with_landmark_header() ) : ?>

              <h1 class="h-landmark"><span><?php echo x_buddypress_get_the_title(); ?></span></h1>

            <?php endif; ?>
          <?php elseif ( is_page() ) : ?>

            <h1 class="h-landmark entry-title"><span><?php the_title(); ?></span></h1>

          <?php elseif ( is_home() || is_single() ) : ?>
            <?php if ( x_is_portfolio_item() ) : ?>

              <h1 class="h-landmark"><span><?php echo x_get_parent_portfolio_title(); ?></span></h1>

            <?php else : ?>

              <h1 class="h-landmark"><span><?php echo x_get_option( 'x_renew_blog_title' ); ?></span></h1>

            <?php endif; ?>
          <?php elseif ( is_search() ) : ?>

            <h1 class="h-landmark"><span><?php _e( 'Search Results', '__x__' ); ?></span></h1>

          <?php elseif ( is_category() || x_is_portfolio_category() || x_is_product_category() ) : ?>

            <?php

            $meta  = x_get_taxonomy_meta();
            $title = ( $meta['archive-title'] != '' ) ? $meta['archive-title'] : __( 'Category Archive', '__x__' );

            ?>

            <h1 class="h-landmark"><span><?php echo $title; ?></span></h1>

          <?php elseif ( is_tag() || x_is_portfolio_tag() || x_is_product_tag() ) : ?>

            <?php

            $meta  = x_get_taxonomy_meta();
            $title = ( $meta['archive-title'] != '' ) ? $meta['archive-title'] : __( 'Tag Archive', '__x__' );

            ?>

            <h1 class="h-landmark"><span><?php echo $title ?></span></h1>

          <?php elseif ( is_404() ) : ?>

            <h1 class="h-landmark"><span><?php _e( 'Oops!', '__x__' ); ?></span></h1>

          <?php elseif ( is_year() ) : ?>

            <h1 class="h-landmark"><span><?php _e( 'Post Archive by Year', '__x__' ); ?></span></h1>

          <?php elseif ( is_month() ) : ?>

            <h1 class="h-landmark"><span><?php _e( 'Post Archive by Month', '__x__' ); ?></span></h1>

          <?php elseif ( is_day() ) : ?>

            <h1 class="h-landmark"><span><?php _e( 'Post Archive by Day', '__x__' ); ?></span></h1>

          <?php elseif ( x_is_portfolio() ) : ?>

            <h1 class="h-landmark"><span><?php the_title(); ?></span></h1>

          <?php endif; ?>

          </div>

          <?php if ( $breadcrumbs == '1' ) : ?>
            <?php if ( ! is_front_page() && ! x_is_portfolio() ) : ?>
              <div class="x-breadcrumbs-wrap">
                <?php x_breadcrumbs(); ?>
              </div>
            <?php endif; ?>
          <?php endif; ?>

          <?php if ( x_is_portfolio() ) : ?>
            <div class="x-breadcrumbs-wrap">
              <?php x_portfolio_filters(); ?>
            </div>
          <?php endif; ?>

        </div>
      </div>
    </header>

  <?php endif; ?>
<?php endif; ?>

And then please go to X > Theme Options > Renew > Blog Options and make sure to add a “Blog Title” So that there will be no empty landmark heading titles even if it is not visible to the naked eye because you have added the custom css.

We would loved to know if this has work for you. Thank you.

Hello RueNel,

This has fixed my issues somewhat

However, for all my articles I know have “The Blog” as an H1 Tag.

Is there any way to remove this?

And how fundamental is it to have text here, for example if I leave the blog title blank and have a blank H1 will this impact my SEO?

Thanks
Jeremy

Hello Jeremy,

If you want to completely remove the blog title, then you can delete this line:

<h1 class="h-landmark"><span><?php echo x_get_option( 'x_renew_blog_title' ); ?></span></h1>

Or you can just replace h1 with h2 or h3.

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.