// Filter to strip anchor link from the content (so "read more" goes to top of page, not anchor location).
add_action('the_content', function( $content ) {
return preg_replace( "/\#more-\d+\" class=\"more-link\"/", "\" class=\"more-link\"", $content );
});
Strip “read more” anchor link from content so “read more” opens at the top of the page
This post brought to you by RocketGeek, ButlerBlog, and the following: