WordPress.org

Ready to get started?Download WordPress

Forums

Yoko
[resolved] How to display excerpt instead of full post content in yoko ? (4 posts)

  1. bloginfonol
    Member
    Posted 2 years ago #

    Please help me to display only the excerpt in homepage instead of full content in yoko theme. My blog link.

    http://wordpress.org/extend/themes/yoko/

  2. Make a child theme of Yoko.

    http://codex.wordpress.org/Child_Themes

    Create wp-content/themes/yoko-child/style.css and put in these lines:

    /*
    Theme Name: Yoko Child Theme
    Author: Self-Help WordPress User
    Template: yoko
    */
    
    @import url("../yoko/style.css");

    Now copy the file content.php from the yoko directory to yoko-child. Just that one file called content.php and not the other files.

    In that copy yoko-child/content.php file replace line 44 which reads

    <?php the_content( __( 'Continue Reading &rarr;', 'yoko' ) ); ?>

    with this line

    <?php the_excerpt(); ?>

    And that's it. You'll now have excerpts in the home page instead of the full content.

  3. bloginfonol
    Member
    Posted 2 years ago #

    Thanks Jan, I tried like what you mentioned. But I liked to add few extra things.

    Just instead of using

    <?php the_excerpt(); ?>

    if you use the code below this that will look good

    <?php the_excerpt( __( 'Continue Reading →', 'yoko' ) ); ?>

    Just thought of Sharing. Thanks for the help.

  4. CareSimpleBD
    Member
    Posted 1 year ago #

    Thanks for this, we are trying to get our blog using the yoko theme, http://yourhealth24-7.caresimple.com to show only the summary v. whole post, and looking for any other advice on how we might improve look, feel, and usability. Mapping it to http://www.caresimple.com

    Thanks,

    James

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags