WordPress.org

Ready to get started?Download WordPress

Forums

Coraline
[resolved] I have excerpts in categories but I also want on frontpage (5 posts)

  1. askechr
    Member
    Posted 8 months ago #

    Hi!

    I have an issue with excerpts on the homepage. My site is http://www.turnlocal.org (im using coraline)

    First I had none excerpts at all, anywhere (my settings in "reading" are set to summary instead of full text). So I followed this: http://wordpress.org/support/topic/theme-coraline-excerpts-in-categories?replies=6

    Which is how to add excerpts (automatic or manual written) to blog categories. It works great, but there are still not excerpts on my homepage (startpage) - how do I do this?

  2. Hi there, the blog index in Coraline is also generated by the file loop.php, as discussed in the other thread.

    In a child theme, try modifying line 184 from:

    <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'coraline' ) ); ?>

    to:

    <?php the_excerpt( __( 'Continue reading <span class="meta-nav">→</span>', 'coraline' ) ); ?>

    Keep in mind that line numbers may differ if you've already made changes to the file, so you may need to download and look at a default, unedited copy of the theme to be sure the line numbers match.

    Be sure to make these changes in a child theme, not in the default theme directly, otherwise all your tweaks will be overwritten and erased when you update the theme.

    Here are some guides in case you haven't made one before:

    http://codex.wordpress.org/Child_Themes
    http://op111.net/53/
    http://vimeo.com/49770088

  3. askechr
    Member
    Posted 8 months ago #

    Thank you for the help but the modification you wrote is no different from the original?

  4. Andrew
    Forum Moderator
    Posted 8 months ago #

    Isn't the original "the_content" and the modified "the_excerpt"?

  5. askechr - as Andrew pointed out, the original has the_content (full posts) while the edited version uses the_excerpt to display excerpts.

    If I've misunderstood what you're trying to accomplish, could you please explain your goal in more detail? I do see excerpts on your homepage now, which is what I thought what you wanted:

    http://turnlocal.org/

    Thanks!

Reply

You must log in to post.

About this Theme

About this Topic