Skip to content

Instantly share code, notes, and snippets.

@wendycholbi
Last active December 16, 2015 06:39
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 wendycholbi/5393213 to your computer and use it in GitHub Desktop.
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.
/** 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