Last active
December 16, 2015 06:39
-
-
Save wendycholbi/5393213 to your computer and use it in GitHub Desktop.
Replacing the "Read more..." link with an image on a WordPress site using the Genesis Framework. Paste this code block into Genesis --> Custom Code --> Custom Functions if using the Prose theme, or paste it into the child theme's functions.php file for all other child themes.
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
/** Modify the WordPress read more link */ | |
add_filter( 'the_content_more_link', 'custom_read_more_link' ); | |
function custom_read_more_link() { | |
return '<br /><a class="more-link" href="' . get_permalink() . '"><img class="alignright" src="http://parentjob.com/wp-content/uploads/2013/04/read-more.png" alt="read more" title="Read more..." /></a>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment