Create Excerpts in Twenty Twelve Theme
-
Hi, I’ve created a Child Theme that has a style sheet and a functions.php file in it, as per the wordpress advice on setting up a child theme.
What I’d like to do is add one or the other of the below snippets of code to my child theme, which I’ve copied from on here.
Do I have to create a new folder called contents.php in my child theme and copy all the info. across to it, and then manipulate the code at that point?
Many, many, thanks in advance, Stuart!
<?php if ( is_search() || is_archive() || is_author() || is_tag() || is_home() ) : // Only display Excerpts ?>
Actually, I found the issue. Change a single line:
<?php if ( is_search() ) : // Only display Excerpts for Search ?>
to:
<?php if ( is_search() || is_home() ) : // Only display Excerpts for Search and Index ?>
- The topic ‘Create Excerpts in Twenty Twelve Theme’ is closed to new replies.