Skip to content

Instantly share code, notes, and snippets.

@remkus
Created December 22, 2012 16:05
Show Gist options
  • Save remkus/4359625 to your computer and use it in GitHub Desktop.
Save remkus/4359625 to your computer and use it in GitHub Desktop.
Remove #more on jump
<?php
add_filter( 'the_content_more_link', 'remove_more_link_scroll' );
/**
* Remove the #more jump when clicking to full post in WordPress
*
*/
function remove_more_link_scroll( $link ) {
$link = preg_replace( '|#more-[0-9]+|', '', $link );
return $link;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment