Theme 2012: How to Show Excerpt of Post on Home Page? (5 posts)

  1. jf80
    Posted 3 years ago #

    Is there any way to change this theme to only show the first part of a post and add a more button to view the rest?

    On the home page that is.


  2. Michael
    Forum Moderator
    Posted 3 years ago #

    that is what the theme does by default - when you use the 'more tag' while writing or editing posts.


    please post a link to your site if it is different for you.

    before you start with editing any theme template files, create a child theme http://codex.wordpress.org/Child_Themes

    to get an automatic excerpt on the posts page, you need to edit content.php in the child theme, and change this line:

    <?php if ( is_search() ) : // Only display Excerpts for Search ?>


    <?php if ( is_search() || is_home() ) : // Only display Excerpts for Search and Posts Page ?>
  3. justradar
    Posted 2 years ago #

    this is very helpful. how would you go about setting a thumbnail for the excerpt only, while showing the full size image in the post?

    i have been trying to get this to work forEVER and have had no luck!

    thanks for any help you can point me towards!

  4. Michael
    Forum Moderator
    Posted 2 years ago #

    please start your own topic; http://codex.wordpress.org/Forum_Welcome#Where_To_Post

    (your question is different from the problem of this topic)

  5. justradar
    Posted 2 years ago #

    apologies, i will start my own topic

Topic Closed

This topic has been closed to new replies.

About this Topic