The quickest way to find something out!
01543 223074

WordPress Twenty Thirteen Post Excerpts

Published date: 8th August 2013
Last modified: 3rd February 2017

How to change Post Exceprts […] to Read More…

WordPress have recently added the Twenty Thirteen standard theme.  It looks pretty good for a standard template and is also responsive which helps with mobile devices.  One area which has changed is the architecture and naming conventions of the files.  For example content-page has gone and so has some of the nice little functions.

For example the post excerpt summary has changed slightly.  You will notice if you’re creating a customised page layout and you want to show a post summary based on a category, the following will show […] after the summary instead of “Click here to read more >>”.

To remove the […] you need to change the themes function.php and add the following code.

function change_excerpt_more()
{
    function new_excerpt_more($more)
    {
        return '<span><a href="'.get_permalink() .'"> [Continue Reading..]</a></span>';
    }
    add_filter('excerpt_more','new_excerpt_more');
}
add_action('after_setup_theme','change_excerpt_more');

Update: 3rd Feb 2017. This markup is still relevant for Twenty Seventeen theme.
Summary
Wordpress Twenty Thirteen Post Excerpts
Article Name
WordPress Twenty Thirteen Post Excerpts
Description
A simple piece of code to help you add the read more into the blog posts on any wordpress theme template.
Author
Cocoonfxmedia Ltd
Cocoonfxmedia Ltd
Publisher Logo

Blog Categories