A user asked in Genesis Slack:
Can you give me a hint on how could I add a “Read More” button to the post excerpt?
Adding a Read more button below excerpts/content/content limit for every post in archives (Posts page, category archives etc.) of Genesis is as simple as adding
add_action( 'genesis_entry_content', 'custom_add_read_more' );
/**
* Add Read More button below post excerpts/content on archives.
*/
function custom_add_read_more() {
// if this is a singular page, abort.
if ( is_singular() ) {
return;
}
printf( '<a href="%s" class="more-link button">%s</a>', get_permalink(), esc_html__( 'Continue Reading' ) );
}
in child theme’s functions.php.
Replace Continue Reading
with your desired read more text.
Depending on the active theme, you may want to add a bit of CSS to add some space below the button.
.more-link {
margin-bottom: 30px;
}