Skip to content

Instantly share code, notes, and snippets.

@frankschrijvers
Last active June 6, 2016 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frankschrijvers/9ecbb6fdc17b6506396aa8f3eaddaaa8 to your computer and use it in GitHub Desktop.
Save frankschrijvers/9ecbb6fdc17b6506396aa8f3eaddaaa8 to your computer and use it in GitHub Desktop.
Modify the Genesis content read more link
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Modify the Genesis content read more link
add_filter( 'get_the_content_more_link', 'wps_read_more_link' );
add_filter( 'the_content_more_link', 'wps_read_more_link' );
function wps_read_more_link($more) {
$read_more_title = sprintf( '<span class="screen-reader-text">%s %s</span>', __( 'about ', 'seasons' ), get_the_title() );
return sprintf( ' ... <a href="%s" class="more-link">%s %s</a>', get_permalink(), __( 'Continue Reading', 'seasons' ), $read_more_title );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment