Quantcast
Channel: Riz Notes
Viewing all articles
Browse latest Browse all 40

To turn off infinite scroll feature add following…

$
0
0

To turn off infinite scroll feature, add following code to your functions.php:


/* Code to remove infinite scroll */
add_action ( 'genesis_meta', 'child_scripts');
function child_scripts() {
if ( somo_is_masonry() ) {
wp_deregister_script( 'jquery-infinitescroll' );
}
}

remove_action( 'genesis_after_endwhile', 'somozon_posts_nav' );
add_action( 'genesis_after_endwhile', 'child_posts_nav' );
function child_posts_nav ( ) {
$nav = genesis_get_option( 'posts_nav' );

if( 'prev-next' == $nav )
genesis_prev_next_posts_nav();
elseif( 'numeric' == $nav )
genesis_numeric_posts_nav();
else
genesis_older_newer_posts_nav();
}


Viewing all articles
Browse latest Browse all 40

Trending Articles