Created
February 14, 2019 15:00
-
-
Save moxdev/3f94eadd0ea05295391ae2a68c460108 to your computer and use it in GitHub Desktop.
Custom Read More Links #wp
This file contains hidden or 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
/** | |
* "Read More" links for blog. | |
*/ | |
add_filter( 'the_content_more_link', 'quantum_modify_read_more_link' ); | |
/** | |
* Edit output of "Read More" links | |
*/ | |
function quantum_modify_read_more_link() { | |
return ' <a class="more-link btn" href="' . get_permalink() . '">Continue reading »</a>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment