The below code is to be used to modify the text of “Read More” link in Genesis Framework. Add the code to your theme’s functions.php file.
1 2 3 4 5 6 7 8 |
<?php //* Do NOT include the opening php tag shown above. Copy the code shown below. //* Modify the Genesis content limit read more link add_filter( 'get_the_content_more_link', 'sp_read_more_link' ); function sp_read_more_link() { return '<a class="more-link" href="' . get_permalink() . '">Continue Reading →</a>'; } |
The above code will change the read more link to “Continue Reading →.” You can change the text in line 4 to whatever text you like.
Leave a Reply