Created
February 1, 2019 18:52
-
-
Save WordBits/b6d35d66195c0dfd4e54b6710b8bb9ca to your computer and use it in GitHub Desktop.
Change [...] to Read More » on Genesis sites
This file contains hidden or 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 | |
// Download this snippet as a plugin and more at: https://wordbits.io/snippet/change-to-read-more/ | |
// Created by: Liam Dempsey | |
?> | |
<?php | |
//* 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() . '">[Read More »]</a>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment