dajocarter
10/20/2016 - 5:37 AM

Modify the Read More text when using the the_excerpt()

Modify the Read More text when using the the_excerpt()

// Replaces the excerpt "[...]" text with a link
function excerpt_more_link($more) {
  global $post;
  return '&hellip;<div><a class="button" href="'. get_permalink($post->ID) . '">Read More</a></div>';
}
add_filter('excerpt_more', 'excerpt_more_link');