Tagged: x
-
AuthorPosts
-
March 27, 2017 at 12:10 am #1421182
Hello,
I would like to know why my category page:
http://rosevillecrossfit.com/workout-of-the-day/Looks different from my blog pots page:
http://rosevillecrossfit.com/wod/Specifically the image is missing, and <hr> tags gone
Thanks,
-JesseMarch 27, 2017 at 1:58 am #1421261Hi Jesse,
Thanks for writing in! They look exactly same except the featured image. Since blog page and category pages use different template so they will look different which is usual.
Cheers!
March 27, 2017 at 9:28 pm #1422519Thanks for the reply!
Where can I edit the category page template so I can make it look like a blog page?
Or, is there a way to have two different blog pages?
March 27, 2017 at 10:21 pm #1422539Does this post discuss the same question?
https://community.theme.co/forums/topic/designing-unique-category-pages/
March 28, 2017 at 4:27 am #1422770Hi Jesse,
No, that user want to customize the archive page. While you want the archive page to appear same like the blog index page, yes?
On your child theme navigate to this directory \x-child\framework\views\global\ There create a file named _content.php and paste the code below on it and save.
<?php // ============================================================================= // VIEWS/GLOBAL/_CONTENT.PHP // ----------------------------------------------------------------------------- // Display of the_excerpt() or the_content() for various entries. // ============================================================================= $stack = x_get_stack(); $is_full_post_content_blog = is_home() && x_get_option( 'x_blog_enable_full_post_content' ) == '1'; ?> <?php if ( is_singular() || $is_full_post_content_blog || is_archive()) : x_get_view( 'global', '_content', 'the-content' ); if ( $stack == 'renew' ) : x_get_view( 'renew', '_content', 'post-footer' ); endif; else : x_get_view( 'global', '_content', 'the-excerpt' ); endif; ?>
Hope it helps, Cheers!
March 29, 2017 at 5:31 pm #1424694That’s perfect, thank you!
March 29, 2017 at 8:16 pm #1424849Glad we were able to help 🙂
-
AuthorPosts