Skip to content

Instantly share code, notes, and snippets.

@leepettijohn
Created January 2, 2015 15:25
Show Gist options
  • Save leepettijohn/f5d766473084b73a6f6e to your computer and use it in GitHub Desktop.
Save leepettijohn/f5d766473084b73a6f6e to your computer and use it in GitHub Desktop.
Changing Read More Links in Blog Page
// 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 '&nbsp;<a class="more-link" href="' . get_permalink() . '">Keep Reading &hellip;</a>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment