Last active
July 16, 2018 02:43
-
-
Save nandomoreirame/c64c8411fca13b711762cd868f1efbb7 to your computer and use it in GitHub Desktop.
WP Remove the “read more” jump
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
| <?php | |
| function themeNoMoreJumping($post) { | |
| return '<a href="'.get_permalink($post->ID).'" class="read-more">'.'Continue Reading'.'</a>'; | |
| } | |
| add_filter('excerpt_more', 'themeNoMoreJumping'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment