Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Penscratch displays the full post by default. To get excerpts on the blog instead, you have two options:

    1. You can manually add the More tag on each post.

    OR

    2. You can create a child theme and add a custom function to it.

    Coincidentally, I just ran a child-theming workshop using Penscratch. One of the exercises in the workshop modifies the blog display to show excerpts. Feel free to check it out here:

    https://zooninidev.com/child-theming/

    The specific exercise to display excerpts on the blog page starts here:

    https://zooninidev.com/child-theming/#/40

    I’ve tried to manually ‘add the more’ tag but it doesn’t appear where I want it to… it appears at the end of the page but it doesn’t reflect in the site…

    Is there something wrong in what I’m doing?

    Hi @soapskkill,

    Your site is hosted over at WordPress.com while these forums are intended for folk who have sites that are hosted elsewhere and running on the free software available here at www.ads-software.com.

    In case you’re unsure of the differences between the two types of WordPress (WordPress.com and www.ads-software.com) the following guide gives a good overview:

    https://en.support.wordpress.com/com-vs-org/

    The theme forum over at WordPress.com is therefore the best place for you to get help with your question. Please start a new post there via the following link and we can then help out:

    https://en.forums.wordpress.com/forum/themes#postform

    In your post, please include a link to the post that you’ve added the more tag to. (Please note that the tag will only work with posts and not pages.)

    Thanks!

    Oops! That was pretty basic… thanks for letting me know

    You’re welcome!

    adispune

    (@adispune)

    Hei, Kathryn. I followed your child theme experiment with Penscratch, but at the excerpt part i always get this error:

    Parse error: syntax error, unexpected ‘else’ (T_ELSE) in /abc/penscratch-child/content.php on line 36

    After many tries, i still couldn’t find out the problem in the code. Can you help me out, please?

    This is the code you suggested in your presentation:

    if ( is_search() || is_home() ) : // Only display Excerpts for Search or Blog ?>
    	<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>', 'penscratch' ) ); ?>
    		<?php
    			wp_link_pages( array(
    				'before' => '<div class="page-links">' . __( 'Pages:', 'penscratch' ),
    				'after'  => '</div>',
    			) );
    		?>php
    	</div><!-- .entry-content -->
    	<?php endif; ?>
    </article><!-- #post-## -->
    • This reply was modified 8 years ago by adispune.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How To Make Blog Posts Show As Excerpts Not Full Text’ is closed to new replies.