• Resolved jyaroshi

    (@jyaroshi)


    Hi,

    I’d like to make it so that the Suits theme doesn’t display the entire post, but instead only gives the excerpt. I want this to be the default setting, and would prefer to lose the option to even display the whole post. I’ve tried search wordpress support areas for help, but they all recommend to insert the_excerpt in the template post.php. Suits doesn’t have this template file though, so I’m not sure what file to change or how. I have a feeling I need to do something to the index.php since that is where the loop is.

    I’m semi new to wordpress. I am working with a child theme, but generally i’ve only really worked with the style.css. I’m pretty lost on the php though.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jyaroshi

    (@jyaroshi)

    So I found out that if I upload the content.php and change the the_content, to the_excerpt, i’ll get an excerpt, BUT it posts the excerpt only. As in.. when I click on the post I only see the excerpt.

    The second line of code below is where I replaced the_content with the_excerpt.

    <div class="entry-content">
    		<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'suits' ) ); ?>
    		<?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'suits' ) . '</span>', 'after' =>

    Obviously… this isn’t the right class to change, in fact i’m wondering if I need to make a completely new one? This is as close as i’ve gotten though with all my messing around.

    Thread Starter jyaroshi

    (@jyaroshi)

    Fixed it. I made a new template file in the child theme called the excerpt.php. Copied the entire content.php but change the_content to the_excerpt. Then I just changed the child index.php to say ‘excerpt’ instead of ‘content’ in the get_the_template function.

    Basically, the key here was just making that excerpt.php and then plugging it into the index.

    Ps. Formatting issues followed after I did this, but i’ve fixed them all now ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Default theme to get excerpts only’ is closed to new replies.