WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. jf80
    Member
    Posted 1 year 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.

    Thanks.

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

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

    http://codex.wordpress.org/Customizing_the_Read_More

    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 ?>

    to:

    <?php if ( is_search() || is_home() ) : // Only display Excerpts for Search and Posts Page ?>
  3. justradar
    Member
    Posted 11 months 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. alchymyth
    The Sweeper & Moderator
    Posted 11 months ago #

    @justradar
    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
    Member
    Posted 11 months ago #

    apologies, i will start my own topic

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags