Skip to content

Instantly share code, notes, and snippets.

@WesStraham
Created February 22, 2013 17:27
Show Gist options
  • Select an option

  • Save WesStraham/5015139 to your computer and use it in GitHub Desktop.

Select an option

Save WesStraham/5015139 to your computer and use it in GitHub Desktop.
Customize the Read More link in Genesis
// Add "Read More" link
add_filter( 'excerpt_more', 'custom_read_more_link' );
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 '... <a class="more-link" href="' . get_permalink() . '" rel="nofollow">Read More</a>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment