Created
April 11, 2017 21:45
-
-
Save braginteractive/f49c23b33d0d1dab29cdc5b36ab74ef9 to your computer and use it in GitHub Desktop.
Add class to Read More link in WordPress
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
<?php | |
/** | |
* Customize the Read More Button | |
**/ | |
function helpwp_modify_read_more_link() { | |
return '<a class="more-link btn btn-sm btn-primary" href="' . get_permalink() . '">View Tutorial</a>'; | |
} | |
add_filter( 'the_content_more_link', 'helpwp_modify_read_more_link' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment