Disable 'Jump' When Clicking 'Read more...'
To disable the ‘jump’ when clicking ‘Read more…’. use the snippet below:
function wpkb_remove_more_jump_link($link) {
$offset = strpos($link, '#more-');
if ($offset) {
$end = strpos($link, '"',$offset);
}
if ($end) {
$link = substr_replace($link, '', $offset, $end-$offset);
}
return $link;
}
add_filter('the_content_more_link', 'wpkb_remove_more_jump_link');