Created
January 20, 2016 22:05
-
-
Save RAStacy/2073f1f4d5f6bcc4c8df to your computer and use it in GitHub Desktop.
Read More Excerpt
This file contains 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
// Replaces the excerpt "more" text by a link | |
function new_excerpt_more($more) { | |
global $post; | |
return '<span class="ellipse">...</span><a class="moretag" href="'. get_permalink($post->ID) . '">Read the full article...</a>'; | |
} | |
add_filter('excerpt_more', 'new_excerpt_more'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment