Created
December 22, 2012 16:05
-
-
Save remkus/4359625 to your computer and use it in GitHub Desktop.
Remove #more on jump
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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