Tagged: x
-
AuthorPosts
-
September 28, 2016 at 4:19 pm #1194661
breepearParticipantI have the Ethos stack installed and have been able to get the Category page names and a description to appear, but on the core Blog page I’m not able to:
– Edit with cornerstone
– Add a page title (even unchecking the disable page title box doesn’t work)
– Add a description to the page below the titleOn the other category pages I was able to add the description via this solution your team provided:
https://community.theme.co/forums/topic/add-category-age-descriptions/September 28, 2016 at 4:20 pm #1194662
breepearParticipantThis reply has been marked as private.September 28, 2016 at 8:37 pm #1194971
Paul RModeratorHi,
Thanks for writing in!
Please note that by setting your page as blog page it will be no longer editable in cornerstone or wordpress standard editor.
The page will be automatically populated by your latest posts.
You can edit the layout under Blog in the customizer(Appearance > Customize)
Thanks
September 28, 2016 at 8:53 pm #1195026
breepearParticipantIs there at least a way to add a title and description to the top of the page?
September 28, 2016 at 10:50 pm #1195124
Rue NelModeratorHello There,
Thanks for the updates. To add a title and description to the top of the page in your blog index, since you have your child theme active and ready, please follow the following steps below:
1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
2] Insert the following code into that new file<?php // ============================================================================= // VIEWS/ETHOS/_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 ); ?> <?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 : ?> <?php if ( is_home() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span>Blog Title</span></h1> <p class="h-desc">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer scelerisque eros eu pulvinar dictum. Nunc egestas massa at elit bibendum, cursus fringilla nunc faucibus. Proin dignissim efficitur nunc a cursus. In luctus mi in nisi condimentum, sed ornare enim tempor. Praesent semper ultricies tellus, rutrum fermentum leo viverra at. Sed a venenatis ante, non aliquam tortor. Aliquam erat volutpat. Curabitur felis elit, rhoncus et molestie in, auctor euismod lorem. Etiam viverra hendrerit metus, vitae ullamcorper metus ultricies ut. Ut eu ex id ligula viverra auctor at quis urna.</p> </header> <?php elseif ( x_is_shop() || x_is_product() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php echo x_get_option( 'x_ethos_shop_title' ); ?></span></h1> </header> <?php elseif ( x_is_bbpress() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php echo get_the_title(); ?></span></h1> </header> <?php elseif ( x_is_buddypress() ) : ?> <?php if ( x_buddypress_is_component_with_landmark_header() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php echo x_buddypress_get_the_title(); ?></span></h1> </header> <?php endif; ?> <?php elseif ( is_page() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark entry-title"><span><?php the_title(); ?></span></h1> </header> <?php elseif ( x_is_portfolio_item() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php the_title(); ?></span></h1> </header> <?php elseif ( is_search() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php _e( 'Search Results', '__x__' ); ?></span></h1> </header> <?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__' ); ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php echo $title; ?></span></h1> </header> <?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__' ); ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php echo $title ?></span></h1> </header> <?php elseif ( is_404() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php _e( 'Oops!', '__x__' ); ?></span></h1> </header> <?php elseif ( is_year() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php _e( 'Post Archive by Year', '__x__' ); ?></span></h1> </header> <?php elseif ( is_month() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php _e( 'Post Archive by Month', '__x__' ); ?></span></h1> </header> <?php elseif ( is_day() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php _e( 'Post Archive by Day', '__x__' ); ?></span></h1> </header> <?php elseif ( x_is_portfolio() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php echo x_get_option( 'x_portfolio_title' ); ?></span></h1> </header> <?php endif; ?> <?php endif; ?> <?php endif; ?>3] Save the file named as
_landmark-header.php
4] Upload this file to your server in the child theme’s folder
wp-content/themes/x-child/framework/views/ethos/Please do not forget to correct the title and the description in the code provided.
Hope this helps. Please let us know how it goes.
September 29, 2016 at 3:45 pm #1196321
breepearParticipantIs there a way to make the description stay within the same container as the posts below and the widget bar and be moved up to the top (see attached screenshot example).
September 29, 2016 at 9:27 pm #1196780
RadModeratorHi there,
Please add this code to Admin > Appearance > Customizer > Custom > Javascript.
jQuery ( '.category .p-landmark-desc' ).appendTo( '.category .x-main');Cheers!
October 19, 2016 at 2:00 am #1221909
breepearParticipantThis reply has been marked as private.October 19, 2016 at 4:16 am #1222024
ChristopherModeratorHi there,
Please add following code in Customize -> Custom -> Global CSS :
p.h-desc { margin-bottom: 0; font-size: 18px; } header.x-header-landmark.x-container.max.width { padding-bottom: 0; }Hope that helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1194661 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
