Skip to content

How To Add Jetpack Infinite Scroll Support To WordPress Theme

Jetpack has some of the most awesome features as its modules, and infinite scroll is one of it. Infinite scroll adds a powerful AJAX feature to your website, which automatically pulls the next set of posts into view when the reader approaches the bottom of the page.

By default, most of the themes doesn’t support infinite scroll feature, but I’ll show you how to add Jetpack infinite scroll support to your WordPress theme.

It’s seems hard, but you can add Jetpack infinite scroll support to your WordPress theme by adding following snippet to your current theme’s functions.php file:

add_theme_support( 'infinite-scroll', array(
    'container' => 'content',
    'footer' => 'page',
) );

There’s a lot more about Jetpack infinite scroll module, but we will look into it in a future article.

Leave a Reply

Your email address will not be published. Required fields are marked *