Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Custom Read More button for WordPress
/**
* Custom Read More Button
*/
function modify_read_more_link() {
return '<br><a class="custom-more" href="' . get_permalink() . '">'. __( 'Read More', 'textdomain' ). '></a>';
}
add_filter( 'the_content_more_link', 'modify_read_more_link' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment