Last active
June 6, 2016 12:23
-
-
Save frankschrijvers/0518e04033657bf53e3a4ace7a674cbd to your computer and use it in GitHub Desktop.
Modify the Genesis read more link
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
//* Modify the Genesis read more link | |
add_filter( 'excerpt_more', 'wps_read_more_link'); | |
add_filter('get_the_content_more_link', 'wps_read_more_link'); | |
function wps_read_more_link() { | |
return '... <a class="more-link" href="' . get_permalink() . '">Continue Reading<span class="screen-reader-text">' . get_the_title() . '</span></a>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment