How to Remove the WordPress “Read More” Jump

Does it annoy you that when readers click, “read more,” it jumps down to that same point in the post?

In most cases, this is a solid way of doing things, but there may be times that it either doesn’t work well with your layout, or you just don’t like it.

Maybe I’m just a weird old guy, but the “read more” jump can be confusing sometimes.

If you want to remove the “read more” jump, here’s how:

Remove the “Read More” Jump


Drop this in your functions.php

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');


Easy!

RELATED POSTS

7 komentar

Write komentar

No comments:

Post a Comment

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation test link ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate another link velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Featured Video

Video Example