Created
April 19, 2013 14:45
-
-
Save surefirewebserv/5420807 to your computer and use it in GitHub Desktop.
Edit Read more Link
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** Edit read more link */ | |
add_filter( 'excerpt_more', 'sf_read_more_link' ); | |
add_filter( 'get_the_content_more_link', 'sf_read_more_link' ); | |
add_filter( 'the_content_more_link', 'sf_read_more_link' ); | |
function sf_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