Tagged: x
-
AuthorPosts
-
September 22, 2016 at 4:37 am #1186209
awecesarParticipantHey, 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!September 22, 2016 at 4:51 am #1186233
awecesarParticipantUntil now I have them turned invisible with display none. Just so you don’t wonder where the elements are I’m talking about 😛
September 22, 2016 at 6:14 am #1186292
ChristianModeratorHey 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.
September 22, 2016 at 7:02 am #1186322
awecesarParticipantThis reply has been marked as private.September 22, 2016 at 10:09 am #1186501
RupokMemberHi 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!
September 24, 2016 at 5:28 am #1189014
awecesarParticipantHey, 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; ?>September 24, 2016 at 5:44 am #1189026
FriechModeratorHi There,
Please activate your child theme.
Thanks.
September 24, 2016 at 12:51 pm #1189215
awecesarParticipantoh 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!September 24, 2016 at 7:35 pm #1189382
RadModeratorHi 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1186209 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
