Support » Theme: Preference Lite » Summary Post

  • Resolved hope4autism


    I’m trying to change my home posts to excerpts only. I don’t see the loop.php folder at all and the index.php isn’t showing “the_content” for me to change to “the_excerpt”.

    Please help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • This is the index.php of the current version of this theme

    in that file, notice the loop here

    <?php while ( have_posts() ) : the_post(); ?>
    	<?php get_template_part( 'content', get_post_format() ); ?>
    <?php endwhile; ?>

    that get_template_part() will look for the content-{postformat}.php and use it when it matches the post, and defaults to just content.php

    Here are the content-{postformat}.php files in that theme


    You have to go over them and change the_content(), if found, to the_excerpt(), if you don’t use post format, just change the content.php one.

    Also, all the modifications must be done in child theme only.

    Theme Author Styled Themes


    Hi hope4autism…I wanted to follow up with Paulapxp’s reply and to see if you were able to get the excerpts in place?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Summary Post’ is closed to new replies.