Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1421182

    jjphillipsyo
    Participant

    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,
    -Jesse

    #1421261

    Rupok
    Member

    Hi 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!

    #1422519

    jjphillipsyo
    Participant

    Thanks 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?

    #1422539

    jjphillipsyo
    Participant
    #1422770

    Friech
    Moderator

    Hi 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!

    #1424694

    jjphillipsyo
    Participant

    That’s perfect, thank you!

    #1424849

    Darshana
    Moderator

    Glad we were able to help 🙂