Below is the code that you can use to modify the read more link when using the WordPress More Tag to break a post on your site:
/** Modify the WordPress read more link */
add_filter( 'the_content_more_link', 'custom_read_more_link' );
function custom_read_more_link() {
return '<a class="more-link" href="' . get_permalink() . '">[Continue Reading]</a>';
}
Below is the code that you can use to modify the read more link when using the Content Limit on the Content Archives section on the Genesis Settings page:
/** Modify the Genesis content limit read more link */
add_filter( 'get_the_content_more_link', 'custom_read_more_link' );
function custom_read_more_link() {
return '... <a class="more-link" href="' . get_permalink() . '">[Continue Reading]</a>';
}
Below is the code that you can use to modify the length of the post excerpts:
/** Modify the length of post excerpts */
add_filter( 'excerpt_length', 'custom_excerpt_length' );
function custom_excerpt_length($length) {
return 50; // pull first 50 words
}