The Read More link on the Blog or Content Archive pages can easily be changed to anything you like.
Suppose you’d like the link to say “Continue Reading…” Simply put this code in your functions.php file:
// Edit the read more link text
add_filter('get_the_content_more_link', 'custom_read_more_link');
add_filter('the_content_more_link', 'custom_read_more_link');
function custom_read_more_link() {
return ' <a class="more-link" href="' . get_permalink() . '" rel="nofollow">Continue Reading …</a>';
}
The code above should be placed in your child theme functions.php file anywhere after:
require_once(TEMPLATEPATH.'/lib/init.php');
and before the following closing code (if it exists):
?>
If you’d like to apply this custom read more to the excerpt as well, add this line at the beginning of the code above:
add_filter( 'excerpt_more', 'custom_read_more_link');
Which gives you a complete block of code that looks like this:
// Edit the read more link text
add_filter( 'excerpt_more', 'custom_read_more_link');
add_filter('get_the_content_more_link', 'custom_read_more_link');
add_filter('the_content_more_link', 'custom_read_more_link');
function custom_read_more_link() {
return ' <a class="more-link" href="' . get_permalink() . '" rel="nofollow">Continue Reading …</a>';
}
