Tagged: x
-
AuthorPosts
-
December 17, 2016 at 11:15 pm #1296940
Brandon TParticipantHello,
I’m looking for solution that allows me to use the No Container, Header, Footer layout with the page title and breadcrumbs. The previously-mentioned layout works great for a homepage, but I’d love some more flexibility in designing subpages with full-width backgrounds, parallax images, etc.
What’s the cleanest way for me to do this?
December 18, 2016 at 2:03 am #1297002
ChristopherModeratorThanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
December 18, 2016 at 10:19 am #1297231
Brandon TParticipantThe site I’m currently working on is hosted at brandontabor.com/withus.
December 18, 2016 at 2:39 pm #1297341
NicoModeratorHi There,
Thanks for the URL. You could try follow the link below.
https://community.theme.co/forums/topic/no-container-template-with-page-title-breadcrumbs-etc/
Let us know how it goes.
Thanks.
December 19, 2016 at 7:24 pm #1298902
Brandon TParticipantThere’s a comment on that post that mentions that it may be outdated. When I paste the code in template-blank-4.php, it changes the template of the home page and won’t load most of the content on the page. Furthermore, the lines of code in _landmark-header.php the post asks you to edit do not exist on my end.
Attached are two screen shots of the home page after I updated template-blank-4.php.
December 20, 2016 at 1:11 am #1299083
ChristopherModeratorHi there,
The thread is old and the solution may not work any longer.
Find _landmark-header.php file under x/framework/views/renew/, please copy this file and put it in the same path inside child theme. Open this file and 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 ( ! 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.
December 20, 2016 at 8:59 pm #1300063
Brandon TParticipantThis is perfect! Thank you very much.
For others reading this post, you’ll also want to add the following CSS to properly align your breadcrumbs:
.x-breadcrumbs{float:right;}December 20, 2016 at 11:22 pm #1300149
Prasant RaiModeratorYou are most welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1296940 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
