Skirmish - For each article in a feed, show a Summary (2 posts)

  1. highhouseshadow
    Posted 3 years ago #

    Hi guys,

    I'm using Skirmish at http://encorepiano.co.nz/

    On the news page, where I send all my posts I want to have a summary instead of the full text, however I can't seem to make this happen.

    Any advice on how to fix this? It would be greatly appreciated

  2. Sridhar Katakam
    Posted 3 years ago #

    Make the below suggested change and any others in a child theme and not directly in the main theme itself in order to prevent loss of customizations upon theme updates.

    See http://codex.wordpress.org/Child_Themes

    Edit Skirmish child theme's content.php.


    <?php if ( is_search() ) : // Only display Excerpts for Search ?>
    	<div class="entry-summary">
    		<?php the_excerpt(); ?>
    	</div><!-- .entry-summary -->
    	<?php else : ?>
    	<div class="entry-content">
    		<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'skirmish' ) ); ?>
    		<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'skirmish' ), 'after' => '</div>' ) ); ?>
    	</div><!-- .entry-content -->
    	<?php endif; ?>


    <div class="entry-summary">
    		<?php the_excerpt(); ?>
    	</div><!-- .entry-summary -->

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic