Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jainnidhi/c4ac8b6e2ec22ac102b210ec8255cd50 to your computer and use it in GitHub Desktop.
Save jainnidhi/c4ac8b6e2ec22ac102b210ec8255cd50 to your computer and use it in GitHub Desktop.
WordPress - Genesis: Custom "read more" link in excerpts
// Custom read more link
add_filter( 'excerpt_more', 'op_read_more_link' );
add_filter( 'get_the_content_more_link', 'op_read_more_link' );
add_filter( 'the_content_more_link', 'op_read_more_link' );
function op_read_more_link() {
return '... <a class="more-link" href="' . get_permalink() . '" rel="nofollow">Continue Reading &raquo;</a>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment