Syd pro theme, Infinite scroll

Hello, i love your Syd pro theme, I seem to be having difficulty with infinite scrolling.

The demo seems to show it built in but the only information I can find in your support FAQ seems to indicate Jetpack my setting is set to - Load more posts using the default theme behaviour.

Any tips?

Tom

Hello Tom,

Thank you for reaching out to us. The Jetpack infinite scroll should be working instantly without extra configuration if it’s enabled from Jetpack settings panel.

If it doesn’t work on your end, maybe you’ll need to add the below code to child theme’s functions.php file or you can use the Code Snippets plugin if you haven’t yet run a child theme.


function sydney_pro_infinite_scroll_init() {
    add_theme_support( 'infinite-scroll', array(
        'container' => 'main',
    ) );
}
add_action( 'after_setup_theme', 'sydney_pro_infinite_scroll_init' );

If this doesn’t resolve the problem, there might be some script in one of your active plugins which pollutes it. To verify, please temporarily switch to the default WordPress theme. If you find it works fine, then you should deactivate all your active plugins at once and then activate them one by one to narrow down where the source of the issue comes from.

Regards,
Kharis