andru26
3/30/2017 - 10:44 PM

read more excerpt custom text - functions.php

read more excerpt custom text - functions.php

// read more custom text
function new_excerpt_more( $more ) {
	return ' <a class="read-more" href="' . get_permalink( get_the_ID() ) . '">' . __( 'Read More', 'your-text-domain' ) . '</a>';
}
add_filter( 'excerpt_more', 'new_excerpt_more' );