Infinite scroll not working in baskerville
-
I followed the directions on the wordpress jetpack website to add support for infinite scroll, but it does not seem to be working. This is what I added to functions.php in an attempt to make it work:
function baskerville_setup() { // Automatic feed add_theme_support( 'automatic-feed-links' ); + + // infinite scroll + add_theme_support( 'infinite-scroll', array( + 'container' => 'posts', + ) ); // Post thumbnails add_theme_support( 'post-thumbnails' ); add_image_size( 'post-image', 945, 9999 ); add_image_size( 'post-thumbnail', 600, 9999 );But it is not working on the main page (the masonry layout of posts). When I have set this up on other themes, adding this code caused the nav at the bottom of the posts (Older/Newer posts) disappears, but that doesnt seem to be happening (as well as jetpack infinite scroll not working)
The infinite scroll does seem to be enabled because it is putting the custom floating footer at the bottom of the page, but it it does not seem to load new posts when i scroll to the bottom.
Does Baskerville use a different way of rendering these post items that i need to plug into the “render” parameter of the infinite scroll feature?
The topic ‘Infinite scroll not working in baskerville’ is closed to new replies.
