0

I am using origin theme. This theme writes dots in post end. In functions.php file I saw line with text:

function origin_excerpt_more( $more ) { 
    return '...';

I changed text to More... and instead of dots text changed. I want that text More... change to link More... And link would be to the post.

How do I change this code? My website is popietevirtuveje.lt

1
  • Please add a link to the theme’s source code.
    – fuxia
    Jun 6, 2013 at 13:10

1 Answer 1

0

you can use this code;

function new_excerpt_more( $more ) {
return ' <div id="daha"><a class="read-more" href="'. get_permalink( get_the_ID() ) . '">Read More</a></div>';

}

add_filter( 'excerpt_more', 'new_excerpt_more' );
1
  • It doesn't work.
    – user33502
    Jun 7, 2013 at 10:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.