The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. Peri's Spice Ladle
    Posted 3 years 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. Styled Themes
    Theme Author

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