Removing Page Scroll after More Link
-
I am a recent convert to WordPress and have been furiously working on my website the past few days. So far I’m loving it but I’m run into a minor snag. Rather than displaying the entire post on the first page, I discovered I could add <!–more–> into the HTML and only display part. however, once someone clicks on “Read more” the subsequent page scrolls down. The codex said to include the following in functions.php which I’ve tried, but the page still scrolls.
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' );
I’m assuming the theme I’m using is somehow interfering but have no way to figure out exactly what is going on.
The website is at https://www.stepstopassiveincome.com.
Thank you for your help!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Removing Page Scroll after More Link’ is closed to new replies.