Tagged: x
-
AuthorPosts
-
August 1, 2016 at 1:54 am #1111645
tarun454ParticipantHello,
I have the website with renew stack and breadcrumb is not coming on the site. I have tried everything and read all the forum post but nothing is working with me. Please help me to display the breadcrumb on the site.
WordPress 4.4.4
X Version: 3.2.5August 1, 2016 at 1:56 am #1111647
ChristopherModeratorHi there,
Can you confirm that you are fully updated? (Theme and Plugins)
You can find the latest version numbers here: (http://theme.co/changelog/) Then you can compare them to what’s installed on your site.
If you find anything to be out of date, you can review our update guide.
Thanks.
August 1, 2016 at 1:58 am #1111648
tarun454ParticipantThis reply has been marked as private.August 1, 2016 at 2:13 am #1111659
ChristopherModeratorHi there,
Please copy _landmark-header.php from framework/views/renew and put it in the same path inside child theme, replace
existing code with following :<?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 ( 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; ?>Hope it helps.
August 1, 2016 at 2:24 am #1111668
tarun454ParticipantThis reply has been marked as private.August 1, 2016 at 2:31 am #1111670
ChristopherModeratorHi there,
Please remove negative margin from following code in child theme style.css file:
.entry-featured { border: 0; margin: -72px 0 0 0; padding: 0; background: none; }And add this :
.masthead { height: 184px; } header.x-header-landmark { padding: 0; }Hope it helps.
August 1, 2016 at 2:45 am #1111686
tarun454ParticipantThis reply has been marked as private.August 1, 2016 at 2:58 am #1111698
ChristopherModeratorHi there,
Please add following code in Customize -> Custom -> JavaScript :
jQuery(".x-header-landmark").insertAfter(".entry-featured");Add this CSS too:
.page .x-landmark { display: none; } .x-breadcrumbs-wrap { text-align: left; } header.x-header-landmark { border: none; padding-top: 0; }Hope it helps.
August 1, 2016 at 3:42 am #1111719
tarun454ParticipantPerfect, Awesome..
Is there a way, If I can display breadcrumb only on couple of pages like services pages instead of all pages?
August 1, 2016 at 3:51 am #1111725
ChristopherModeratorHi there,
Please add this code too :
.x-breadcrumbs-wrap { display: none; } .page-id-13 .x-breadcrumbs-wrap { display: block; }Hope it helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1111645 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
