WordPress.org

Forums

StrapVert
[resolved] Stop showing full post in category,archives,author pages (7 posts)

  1. Today Tomorrow
    Member
    Posted 1 year ago #

    Hi there,can anyone tell me how can i stop the category,archives,author pages from showing full post instead of a small excerpt with read more link like in the home page? Strapvert theme

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Have you tried using the <!--more--> tag in your posts where you want the post teaser to end?

  3. Zulfikar Nore
    Member
    Theme Author

    Posted 1 year ago #

    Using the <!--more--> tag would involve doing that for all of the posts currently published and that could be some task for a site with a lot of posts.

    Simple solution is child theme with the mods - I've put one together just for this specific requirement and you can download it here: http://www.wpstrapcode.com/faqs/how-do-i-show-excerpts-on-the-archive-category-and-author-pages

    Hope that helps but if not please feel free to ask

  4. Today Tomorrow
    Member
    Posted 1 year ago #

    I installed the child theme and it works,thank you very much.

  5. Today Tomorrow
    Member
    Posted 1 year ago #

    One more thing,how do i change the 'Read more' text,i can't find the line
    <?php the_content('Read more...'); ?>

  6. Zulfikar Nore
    Member
    Theme Author

    Posted 1 year ago #

    You are welcome.

    In content-archives.php @line 27 is the code
    <a href="<?php the_permalink(); ?>">Read More &raquo;</a>
    you can change the words Read More there.

    To make the change for the rest of entries copy the file content.php in to your child theme - the code to change is @line 29.

  7. Zulfikar Nore
    Member
    Theme Author

    Posted 1 year ago #

    I'm assuming that this is now resolved - closing topic for now but feel free to open a new if the needs be.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic