Read more in posts

  • maxsoftware

    #10763

    Hello everybody,

    I have a question about the “read more” tag in Franz Josef. If there are a lot of text the post is shorten at index page. There is a […] at the end. I want to change that […] into [Read more] and this should be linked to the full text. At the moment is no link at […].

    Is this possible? How can I change that? […] (without link) into [Read more] with a link to the full post.

    maxsoftware

    #46705

    I found a solution for functions.php 🙂

    // Replaces the excerpt "Read More" text by a link
    function new_excerpt_more($more) {
    global $post;
    return '<a class="moretag" href="'. get_permalink($post->ID) . '"> Read the full article...</a>';
    }
    add_filter('excerpt_more', 'new_excerpt_more');
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.