Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1080014
    bedingfield
    Participant

    Ah, ok. thank you. I was hoping I could retain the original blog/category index layout while having a different layout for single post.

    I love the way my single blog post is played out. Its exactly what I wanted. But I just need to add the excerpt to the SINGLE blog post.

    So I want Title, excerpt, meta, tags at the top of my single page then the full width image, then copy etc.

    Would something like <?php x_get_view( 'renew', '_content', 'post-header' 'excerpt'); ?> work? i am not sure how you call the excerpt within Renew.

    http://elyrunners.club/thames-path-100/

    Thank you for your time.

    #1080021
    Christopher
    Moderator

    Hi there,

    Copy _content-post-header.php from framework/views/renew and put it in the same path inside child theme, replace existing code with following :

    <?php
    
    // =============================================================================
    // VIEWS/RENEW/_CONTENT-POST-HEADER.PHP
    // -----------------------------------------------------------------------------
    // Standard <header> output for various posts.
    // =============================================================================
    
    ?>
    
    <header class="entry-header">
      <?php if ( is_single() ) : ?>
      <h1 class="entry-title"><?php the_title(); ?></h1>
      <?php x_get_view( 'global', '_content', 'the-excerpt' ); ?>
      <?php else : ?>
      <h2 class="entry-title">
        <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php the_title(); ?></a>
      </h2>
      <?php endif; ?>
      <?php x_renew_entry_meta(); ?>
    </header>

    Hope that helps.

    #1081895
    bedingfield
    Participant

    Hi Rue,

    Is there any way I can have blog / tag index as per standard Renew, while maintaining the newer code for my single blog posts?

    Thank you

    #1082786
    Christian
    Moderator

    That is technically possible. However, further customizations from here would be getting into custom development, which is outside the scope of support we can offer. If you need more in depth changes, you may wish to consult with a developer. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding.

    #1083794
    bedingfield
    Participant

    Ah, OK.

    I ask as there is a lot of white space in the boxes in the category index…

    http://elyrunners.club/category/race-report/

    How can I reduce white space? There is too much at top and bottom of each box along with too much below thumbnails and copy.

    What CSS will change spacing on these for category and tag pages only!

    Thank you

    #1084364
    Christopher
    Moderator

    Hi there,

    Please add this :

    .entry-content.excerpt {
        margin-top: 1px;
    }
    .blog .entry-wrap .x-container.max.width.offset, .archive .entry-wrap .x-container.max.width.offset {
        margin-top: 0;
        margin-bottom: 0;
    }
    .x-iso-container-posts.cols-3 .entry-wrap {
        padding: 3% 7.5% 3.5%;
    }

    Hope that helps.

  • <script> jQuery(function($){ $("#no-reply-1074218 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>