Created
August 6, 2015 05:23
-
-
Save aarifhsn/77e19fc64d211f050829 to your computer and use it in GitHub Desktop.
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
/** | |
* Replaces the excerpt "more" text by a link | |
*/ | |
function thirteenmag_excerpt_more($more) { | |
global $post; | |
return '<a class="moretag" href="'. get_permalink($post->ID) . '"> Read the full article <i class="fa fa-share"></i> </a>'; | |
} | |
add_filter('excerpt_more', 'thirteenmag_excerpt_more'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment