Skip to content

Instantly share code, notes, and snippets.

@braginteractive
Created April 11, 2017 21:45
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 braginteractive/f49c23b33d0d1dab29cdc5b36ab74ef9 to your computer and use it in GitHub Desktop.
Save braginteractive/f49c23b33d0d1dab29cdc5b36ab74ef9 to your computer and use it in GitHub Desktop.
Add class to Read More link in WordPress
<?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