Tagged: x
-
AuthorPosts
-
November 19, 2016 at 2:43 am #1263444
markwestParticipantThanks Christopher,
I feel like I’m making great progress 🙂
I found this article about making breadcrumbs always visible –
https://community.theme.co/forums/topic/breadcrumbs-always-visible/
and, whilst I can see the file _breadcrumbs.php under the integrity stack, I can’t see it under Renew?
Can I just copy the file from integrity to x-child/…/renew or is there a different way to do this with the renew stack?
Thanks
Mark
November 19, 2016 at 2:44 am #1263445
ChristopherModeratorYou’re welcome.
November 19, 2016 at 2:57 am #1263453
ChristopherModeratorPlease update your code in_landmark-header to :
<?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( 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 ( ! 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; ?>Hope it helps.
November 19, 2016 at 3:15 am #1263466
markwestParticipantHi Christopher,
Still not showing on home page 🙁
Thank you for all your effort on this.
Kind Regards
Mark
November 19, 2016 at 3:21 am #1263467
ChristopherModeratorI enabled ‘page title’ option for home page and breadcrumbs appeared on top of page.
Thanks.
November 19, 2016 at 3:24 am #1263468
markwestParticipantCool, thanks Christopher.
For the styling – would it just be a case of setting a negative top margin on the banner section and then styling the background of the breadcrumb bar?
Thanks again for all your help getting this working for me – it looks great.
Kind Regards
Mark
November 19, 2016 at 3:29 am #1263470
markwestParticipantHi Christopher,
Just checked the site and my initial idea of negative top margin, even combined with high z-index on landmark-header doesn’t seem to work – the breadcrumb just gets hidden.
Also, now in the breadcrumb bar there is ‘Home Icon >> Home’ – which isn’t ideal. Is it possible just to display the bar with the Home Icon when on the home page please?
Thanks
Mark
November 19, 2016 at 3:42 am #1263479
ChristopherModeratorHi there,
Please add following code in Customize -> Custom -> Global CSS :
.entry-content.content { margin-top: -31px !important; } .x-header-landmark { z-index: 999; position: relative; background-color: rgba(255,255,255,0.5); } .home .x-breadcrumbs .delimiter, .home .x-breadcrumbs .current { display: none; }Hope that helps.
November 19, 2016 at 7:39 am #1263573
markwestParticipantThank you so much for all your work – that is awesome 🙂
On the basis that this seems to actually be possible to achieve I’m not quite sure why it’s just not an option to turn on? I’m pretty sure I’m not the only person who would like to use breadcrumbs with a no container page template? Just wondering if there is some super-technical reason why it’s not an easy default option. Seems to me like if someone turns on breadcrumbs in customiser – it’s because they want them 🙂 – whatever the page template.
Thanks again for all the effort to deliver a great result.
Cheers
Mark
November 19, 2016 at 6:05 pm #1263844
Rue NelModeratorHello Mark,
Thanks for updating in! The No container page template doesn’t have breadcrumbs because we have anticipated that this template will be used for home page, one page navigation, lead pages and even landing pages.
Hope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1259553 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
