Support » Plugins and Hacks » Jetpack by WordPress.com » Turn off Infinite Scroll on specific pages

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Brandon Kraft

    (@kraftbj)


    I haven’t tested this, but I would start with something like this in your theme’s function.php file:

    if ( is_post_type_archive( array( 'foo', 'bar', 'baz' ) ) ) {
    		add_filter( 'infinite_scroll_archive_supported', '__return_false' );
    	}

    where 'foo', 'bar', 'baz' are the post types you do not want supported.

    Cheers!

    Nate

    (@natehawkes)


    Actually, that seems to work! The loading animation still appears, but I guess I could change that with CSS. Thanks so much!

    Plugin Contributor Brandon Kraft

    (@kraftbj)


    Hope you had a great weekend. CSS to remove the spinner is a great idea. On our end, I’ll work to duplicate and correct it since it would make sense for us not to display the spinner in a case like that 🙂

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Turn off Infinite Scroll on specific pages’ is closed to new replies.