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

  1. bloginfonol
    Posted 3 years ago #

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


  2. Make a child theme of Yoko.


    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
    Posted 3 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
    Posted 2 years 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



Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic