Viewing 3 replies - 1 through 3 (of 3 total)
  • start by creating a child theme for the edits.

    then, for example, create a folder /template-parts/post/ in the child theme and add a file content.php into it, based on a copy of content.php in the corresponding folder of Twenty Seventeen.
    then edit this section:

    			/* translators: %s: Name of current post */
    			the_content( sprintf(
    				__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
    				get_the_title()
    			) );
    

    to:

    			if( is_category() ) { 
    			the_excerpt();
    			} else {
    			/* translators: %s: Name of current post */
    			the_content( sprintf(
    				__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
    				get_the_title()
    			) );
    			}
    

    Thanks for this!

    • This reply was modified 7 years, 11 months ago by heyrocketgirl.

    I added your code to the content.php in my child theme and it’s working but it does not show on every post. I noticed if a post has a bullet list or pictures it does not show the “continue reading” link.
    How can I add it so that it shows on every post?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display post excerpt instead of full post’ is closed to new replies.