Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function new_excerpt_more($more) {
- return '';
- }
- add_filter('excerpt_more', 'new_excerpt_more', 21 );
-
- function the_excerpt_more_link( $excerpt ){
-
- $post = get_post();
- $excerpt .= '<p class="read-more">';
- $excerpt .= '<a class="ast-button" href="'. get_permalink($post->ID) . '" target="_self">Read More »</a>';
- $excerpt .= '</p>';
-
- return $excerpt;
- }
- add_filter( 'the_excerpt', 'the_excerpt_more_link', 21 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement