Reply To: Prevent Page Scroll When Clicking the More Link

Home Forums Support Prevent Page Scroll When Clicking the More Link Reply To: Prevent Page Scroll When Clicking the More Link

Home Forums Support Prevent Page Scroll When Clicking the More Link Reply To: Prevent Page Scroll When Clicking the More Link

#186382
Tom
Lead Developer
Lead Developer

You could try this:

add_filter( 'generate_more_jump','generate_disable_more_jump' );
function generate_disable_more_jump()
{
    if ( has_tag( 'No Jump) ) :
        return '';
    endif;

    return apply_filters( 'generate_more_jump','#more-' . get_the_ID() );
}

Basically it should check if you post has the “No Jump” tag, and if so, won’t jump.