Last active
August 11, 2021 19:53
-
-
Save grtaylor2/5074635 to your computer and use it in GitHub Desktop.
Change the [Read More] Text in Genesis WordPress Child Theme
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
/** Customize Read More Text */ | |
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 href="' . get_permalink() . '" rel="nofollow">CUSTOMIZE YOUR TEXT HERE</a>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks you-