Customize [Read More] or Continue Reading in Genesis Themes using code
By default Genesis Themes ship with [Read More] as hyperlink in blog archives. You can change it to one of your choice by using out this snippet.
Steps:
- Login to Dashboard and go to Appearance -> Theme Editor.
- Make sure a Genesis child theme (see popular genesis themes) is active and you are not editing core Genesis framework.
- Look for functions.php file and open it.
- At the bottom of the functions.php file copy and paste following code.
add_filter( 'excerpt_more', 'child_read_more_link' );
add_filter( 'get_the_content_more_link', 'child_read_more_link' );
add_filter( 'the_content_more_link', 'child_read_more_link' );
function child_read_more_link() {
return '<a class="more-link-custom" href="' . get_permalink() . '">CUSTOMIZE YOUR TEXT HERE</a>';
}
Change CUSTOMIZE YOUR TEXT HERE
with anything of your choice.
You can customize the read more link as a button by replacing more-link-custom
with button
or by writing custom CSS code.