Created
November 29, 2012 04:18
-
-
Save kopepasah/4166783 to your computer and use it in GitHub Desktop.
Prevent Page Scroll When Clicking the More Link
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
function remove_more_link_scroll( $link ) { | |
$link = preg_replace( '|#more-[0-9]+|', '', $link ); | |
return $link; | |
} | |
add_filter( 'the_content_more_link', 'remove_more_link_scroll' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment