Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    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.

    Thread Starter bloginfonol

    (@bloginfonol)

    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.

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to display excerpt instead of full post content in yoko ?’ is closed to new replies.