Remove WordPress more link scroll down to content

Go to source

If you want to get rid of the WordPress more link scroll, so that your more link doesn’t make a jump down to the continuing content, add this to your theme’s functions.php:

/*  Remove more link scroll
/* ------------------------------------ */
function alx_remove_more_link_scroll( $link ) {
	$link = preg_replace( '|#more-[0-9]+|', '', $link );
	return $link;
}
add_filter( 'the_content_more_link', 'alx_remove_more_link_scroll' );