Replace the excerpt elipses in WordPress

Do you hate that […] at the end of your excerpts? Do you wish you could have a link to the post there instead? Well look no further! Just add this function to your functions.php file and you’re good to go.

function custom_excerpt($content) {
return str_replace('[...]',
'<div><a href="'. get_permalink() .'">Read more</a>', $content );
}
add_filter('the_excerpt', 'custom_excerpt');

You can change “Read more” to say whatever you want.

Jeff Roberts Web Design
7700 Howe Drive
Prairie Village, KS 66208

Copyright 2018. All Rights Reserved.