Home Forums Teddy WordPress Theme excerpt problem

This topic contains 3 replies, has 4 voices, and was last updated by  Johnny 3 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #206

    linkux
    Participant

    hello,

    i’ve installed your theme and everythig is ok but the excerpts on the homepage.
    i would like to know if there is a way to automatically get line breaks in excerpts.
    also if there is possible to get a read more button in the excerpts

    thanks!

    #207

    BWSM
    Keymaster

    Hi

    Plz replace the line401-407 in functions.php:

    function twentyten_continue_reading_link() {
    return '';
    }
    function twentyten_auto_excerpt_more( $more ) {
    return ' …' . twentyten_continue_reading_link();
    }
    add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' );

    as:

    function new_excerpt_more($more) {
    global $post;
    return '<p><a href='. get_permalink($post-ID) . '>Read the Rest...' . '</a></p>';
    }
    add_filter('excerpt_more', 'new_excerpt_more');
    • This reply was modified 3 years, 9 months ago by  BWSM.
    • This reply was modified 3 years, 9 months ago by  BWSM.
    • This reply was modified 3 years, 9 months ago by  BWSM.
    • This reply was modified 3 years, 9 months ago by  BWSM.
    #1894

    sakura72
    Participant
    This reply has been marked as private.
    #1897

    Johnny
    Participant

    Hi, please leaving your site url and login info here through private message, I will check it for you later,
    Thank you

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.