WordPress.org

Ready to get started?Download WordPress

Forums

Preference Lite
[resolved] Changing content to excerpt with Read more tag and image (3 posts)

  1. Peri's Spice Ladle
    Member
    Posted 1 year ago #

    Need assistance to change the content on my home page and archives to show only excerpts in the theme.

    WordPress codex gives instructions to change the _content to _excerpt in the index.php, but I could not find it in the editor...I also want to change the parenthesis at the end of the excerpt to a 'read more of this post' link. Also, would featured image help to show an image alongside the excerpt?

    Appreciate any help in this matter...

  2. StyledThemes
    Member
    Theme Author

    Posted 1 year ago #

    The index.php won't be the file for this theme, but for the content.php one, starting with line 51 that looks like this:

    <?php the_content( __( ' Read More...', 'preference' ) ); ?>

    Then there is another instance of it on line 60.

    For the excerpt "read more", this unfortunately is not coded in for this theme, but the featured image will show up.

  3. Peri's Spice Ladle
    Member
    Posted 1 year ago #

    Thank you, that worked out:) And the read more tag automatically shows up for your theme...appreciate the prompt assistance and your wonderful theme!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic