Support » Theme: Twenty Fourteen » make content posts in center column show summary?

  • I thought there was a way for the center column content to only show a brief snippett of the post. Can’t find it now or figure it out.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Oh good… it’s not just me. I’m an absolute WP newbie and I’ve been looking to solve this one for a few days now. Any help would be greatly appreciated.

    PS… just to clarify… I’m wanting to do this on a site.

    @granpasmurf – There are a number of options available to achieve that depending on your comfort level with code.

    Option 1(Level: Difficult): Create a function in the child theme’s functions.php to replace the_content() with a custom the_excerpt.

    Option 2(Level: Easy): Copy content.php from the parent theme in to your child theme and change the code @line 47 from
    <?php if ( is_search() ) : ?>
    <?php if ( is_search() || is_home() ) : ?>

    Option 3(Level: Easier): Use the Fourteen Extended plugin:

    @tyym – Unfortunately none of the above options are usable on

    Thanks Zulfikar šŸ™‚

    Thread Starter GranPaSmurf


    Thanks for your response.
    I chose Option 2, copied content.php from twentyfourteen into twentyfourteen-child
    this is the result, displayed in the content section of the site:

    Parse error: syntax error, unexpected T_ELSE in /home/content/g/r/a/granpasmurf/html/satp-boilingpoint/wp-content/themes/twentyfourteen-child/content.php on line 51

    can you advise further?

    Will try.

    Could you post the code as you have on line 47 please?

    This is what I have from line 47 to 63:

    <?php if ( is_search() || is_home() ) : ?>
    	<div class="entry-summary">
    		<?php the_excerpt(); ?>
    	</div><!-- .entry-summary -->
    	<?php else : ?>
    	<div class="entry-content">
    			the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) );
    			wp_link_pages( array(
    				'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
    				'after'       => '</div>',
    				'link_before' => '<span>',
    				'link_after'  => '</span>',
    			) );
    	</div><!-- .entry-content -->
    	<?php endif; ?>

    How do we compare?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘make content posts in center column show summary?’ is closed to new replies.