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 wordpress.com 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() ) : ?>
to
<?php if ( is_search() || is_home() ) : ?>
Option 3(Level: Easier): Use the Fourteen Extended plugin: http://wordpress.org/plugins/fourteen-extended/
@tyym – Unfortunately none of the above options are usable on wordpress.com
Zulfikar,
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">
<?php
the_content( __( 'Continue reading <span class="meta-nav">→</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?