Thanks again Leo – the following two filter will do the trick as well:
/* Filter - Remove default 'excerpt more'
---------------------------------------------------------------------------- */
function themeprefix_excerpt_more( $more ) {
return '';
}
add_filter('excerpt_more', 'themeprefix_excerpt_more', 21 );
/* Filter - Add 'read more' to custom excerpt
---------------------------------------------------------------------------- */
function themeprefix_get_the_excerpt( $excerpt ) {
$output = $excerpt;
$output = sprintf(
'%1$s <p class="read-more-container"><a class="button read-more" href="%2$s" title="">%3$s</a></p>',
$excerpt,
get_permalink(),
__( 'Continue Reading', 'plugin' )
);
return $output;
}
add_filter( 'get_the_excerpt', 'themeprefix_get_the_excerpt' );