Home / learning / wordpress / WordPress Twenty Thirteen Theme Post Excerpts in Home, Category, Tag, Author and Archive Pages

WordPress Twenty Thirteen Theme Post Excerpts in Home, Category, Tag, Author and Archive Pages

Publisher:
License:
Filesize:
Price:
Date added: August 29, 2013
Downloads:

Here in this post I will show you how to add post excerpts, display thumbnail of your post which removes featured image from your single post and customize Read More link in your WordPress Twenty Thirteen Theme.

Post Excerpts is a short note of our posts to the visitors and it also reduces the web page loading time by showing a short summary of your posts.

By Default WordPress Twenty Thirteen show post Excerpts only for search action, And to show these Excerpts for all Pages (Home, Category, Tag, Author and Archive Pages) it can be done by slight changes in content.php and function.php pages.

Editing Template Files

[table “151” not found /]

Open content.php file around Line No 33 you can see

This line tells to display Excerpts only to a search page, And to display Excerpts on all other pages modify the code as below

Save the file and refresh your website.

Now you can see the Post Excerpts on Home, Category, Author, Tag, Archive Pages

To add a Thumbnail Image And Read More Link To Excerpt Posts

Open function.php file, add the following code at the end

Save the file.

Recommended Posts :Twenty Thirteen WordPress Theme Customization

How To Create WordPress Twenty Thirteen Child Theme

Again open content.php file around Line No 34 you can see

Below this line add the following code

This code adds the featured image to the post Excerpts with left alignment.

Around line no 15 in content.php file you can see the following line

Remove the line and save the file.

Now you can see the Thumbnail (featured image) and Read More link in the Excerpts posts.

Post Excerpts Preview

WordPress Twenty Thirteen Theme Post Excerpts

Download the modified code of content.php and function.php for your reference.

[wpdm_file id=2]

Hope this tutorial was helpful to you and if you have Questions let us know through comments.

About Amar

3 comments

  1. Thanks for this tutorial. I’ve used it.

  2. I really found the solution for My problem. thanks!

  3. Working with simpleX ! its fine, congratulations

Leave a Reply

Your email address will not be published. Required fields are marked *

*


− three = 1

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

Scroll To Top