Change Read More Text for Excerpts in WordPress code - WPTRINITY

Change Read More Text for Excerpts in WordPress code

if you want to change the text that appears after the excerpt? add this code to your theme’s functions file.

function modify_read_more_link() {
    return '<a class="more-link" href="' . get_permalink() . '">Your Read More Link Text</a>';
}
add_filter( 'the_content_more_link', 'modify_read_more_link'