Profile Photo

How to show Excerpts on your category pages on the Twenty Twelve Theme

If you have installed the Twenty Twelve theme on your WordPress Blog and you want to change the Category results as short Excerpts instead of the whole blog post then do the following steps:

1. In your wordpress admin dashboard go to Appearances->Editor

2. Find the page called content.php

3. Look for this line of code:

if ( is_search() ) : // Only display Excerpts for Search

4. I commented mine out by adding // in front like this:

// if ( is_search() ) : // Only display Excerpts for Search

5. Add this line of code

if ( is_search() || is_home() || is_archive() ) :

6. Save

Tips. Please make sure the opening php tags and closing tags are on another line

Please remember that before you do anything, make a backup of your blog in case you screw something up! That way you will be able to revert back to your blog before you made the change.

July 22, 2013
All Rights Reserved Anna Macko | Powered By aptness | one login

Login

Create an Account Back to login/register
X