Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1186209
    awecesar
    Participant

    Hey, on my site
    http://the-hole-story.golf/top-5-best-golf-club-sets/

    1. I have this part in my head which repeats my page title with the class “landmark”. It is also wrapped in an h1.
    I would like to remove it completely and due to SEO things I don’t just want it to be removed by display none but rather completely and not just by styling.

    2. Same goes for the entry-title that is also in h1. I will add my own h1 for the title so I’d like to have the entry title removed the same way.

    Could you tell me how I can remove those things?
    Thanks a lot!

    #1186233
    awecesar
    Participant

    Until now I have them turned invisible with display none. Just so you don’t wonder where the elements are I’m talking about 😛

    #1186292
    Christian
    Moderator

    Hey there,

    1. You can disable the Breadcrumbs in Appearance > Customize > Header > MISCELLANEOUS

    2. Are you referring to the title in the landmark? If so, that is included in when you disable the breadcrumbs.

    Thanks.

    #1186322
    awecesar
    Participant
    This reply has been marked as private.
    #1186501
    Rupok
    Member

    Hi there,

    For the pages, you can disable page titles from page editor. But for the posts, you need to control this from Child Theme. You need to create and edit the directory /framework/views/renew/_landmark-header.php

    Let’s copy the code from parent theme and paste into Child theme on the same directory and edit the titles from there.

    Cheers!

    #1189014
    awecesar
    Participant

    Hey, I copied the file to the position in the child theme. Can you tell me which aprt of the code I have to edit? Just for testing I changed everything h1 to h3 but in my frontend there is still everything shown with h1 so I think that it is not been overwritten.
    That’s the 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() ) : ?>
    
                <h3 class="h-landmark"><span><?php echo x_get_option( 'x_renew_shop_title' ); ?></span></h3>
    
              <?php elseif ( x_is_bbpress() ) : ?>
    
                <h3 class="h-landmark"><span><?php echo get_the_title(); ?></span></h3>
    
              <?php elseif ( x_is_buddypress() ) : ?>
                <?php if ( x_buddypress_is_component_with_landmark_header() ) : ?>
    
                  <h3 class="h-landmark"><span><?php echo x_buddypress_get_the_title(); ?></span></h3>
    
                <?php endif; ?>
              <?php elseif ( is_page() ) : ?>
    
                <h3 class="h-landmark entry-title"><span><?php the_title(); ?></span></h3>
    
              <?php elseif ( is_home() || is_single() ) : ?>
                <?php if ( x_is_portfolio_item() ) : ?>
    
                  <!-- <h3 class="h-landmark"><span><?php echo x_get_parent_portfolio_title(); ?></span></h3> -->
    
                <?php else : ?>
    
                  <!-- <h3 class="h-landmark"><span><?php echo x_get_option( 'x_renew_blog_title' ); ?></span></h3> -->
    
                <?php endif; ?>
              <?php elseif ( is_search() ) : ?>
    
                <h3 class="h-landmark"><span><?php _e( 'Search Results', '__x__' ); ?></span></h3>
    
              <?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__' );
    
                ?>
    
                <h3 class="h-landmark"><span><?php echo $title; ?></span></h3>
    
              <?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__' );
    
                ?>
    
                <h3 class="h-landmark"><span><?php echo $title ?></span></h3>
    
              <?php elseif ( is_404() ) : ?>
    
                <h3 class="h-landmark"><span><?php _e( 'Oops!', '__x__' ); ?></span></h3>
    
              <?php elseif ( is_year() ) : ?>
    
                <h3 class="h-landmark"><span><?php _e( 'Post Archive by Year', '__x__' ); ?></span></h3>
    
              <?php elseif ( is_month() ) : ?>
    
                <h3 class="h-landmark"><span><?php _e( 'Post Archive by Month', '__x__' ); ?></span></h3>
    
              <?php elseif ( is_day() ) : ?>
    
                <h3 class="h-landmark"><span><?php _e( 'Post Archive by Day', '__x__' ); ?></span></h3>
    
              <?php elseif ( x_is_portfolio() ) : ?>
    
                <h3 class="h-landmark"><span><?php the_title(); ?></span></h3>
    
              <?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; ?>
    
    #1189026
    Friech
    Moderator

    Hi There,

    Please activate your child theme.

    Thanks.

    #1189215
    awecesar
    Participant

    oh wow I was sure I deactivated it!
    I got rid of the h1 from the landmark BUT the one from the entry-title is still there. Could you tell me how to remove that the same way completely? Thanks!

    #1189382
    Rad
    Moderator

    Hi there,

    I don’t see any <h1> from your landmark. All I could see is <h1> from your post title. Headlines are different from landmarks.

    What you need to edit is this file, \framework\views\renew\_content-post-header.php

    Thanks!

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