DISCLAIMER: this post is older than one year and may not be up to date with latest WordPress version.

On a WordPress blog, when you click on a “Read more” link, it automatically drops to the point in the article you theoretically just got to the end of. If you don’t really like that jump, simply apply this simple tip to get rid of it.

Paste the following snippet into your functions.php file:

function wdc_no_more_jumping($post) {
     return '<a href="'.get_permalink($post->ID).'" class="read-more">'.'Continue Reading'.'</a>';
}
add_filter('excerpt_more', 'wdc_no_more_jumping');

Thanks to Alex Denning for the cool tip!

4 Comments

  1. very nice this post will lessen my troubles

  2. Thank you for the tip. Working with word press more recently I am seeing that the functions file is becoming a lot more active. I would normally find a way of going into the code and deleting the certain elements that had this in but this code is a lot more simple and does exactly what I want it to. Of course there is also the case of if for some reason I want to add this element back in at some point if my blogs become more lengthy then I can just take this code out of functions rather than trying to work out what I edited in the first place. Really useful, thanks!

  3. Totally agree with Stephanie! This one is so useful.

Leave a Comment

Your email address will not be published. Required fields are marked *