Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Read More Button For Excerpt in the Blog post archive page template or HomePage
- function themeprefix_excerpt_read_more_link( $output ) {
- global $post;
- return $output . ' <a href="' . get_permalink( $post->ID ) . '" class="more-link" title="Read More">Read More</a>';
- }
- add_filter( 'the_excerpt', 'themeprefix_excerpt_read_more_link' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement