Change text \"Read more\"

Home Forums Lite Version Change text \"Read more\"

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5858
    Melanie
    Guest

    Hi!
    How can I change the text in the exerpt “Read more”?

    #5863
    Masonry Guy
    Keymaster

    Hi Melanie,

    Those text are controlled by wordpress. So you can use this in your functions.php to change it.

    // Replaces the excerpt "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');
    #5878
    Melanie
    Guest

    Many thanks! It works!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Change text \"Read more\"’ is closed to new replies.