Request: Modify Infinite Scroll Code
-
Good afternoon. Thank you for all of your hard work on this theme, and for making it available. I really like it!
I notice that support for Jetpack’s Infinite Scroll is included in the theme, but hardcoded so that it always requires a button press to load additional posts. I believe this is done in the code below:
add_theme_support( 'infinite-scroll', array( 'type' => 'click', 'container' => 'posts', 'footer' => false, ) );
I’d like to suggest removing the
type
setting altogether, which will then make the theme scroll using whatever mechanism the user selects in the Jetpack Infinite Scroll Settings, which can be “Load more posts using the default theme behavior”, “Load more posts in page with a button”, or “Load more posts as the reader scrolls down”. As it stands now, that last option does not work. It instead uses a button in the same manner as the second option. The proposed change would be:add_theme_support( 'infinite-scroll', array( 'container' => 'posts', 'footer' => false, ) );
Of course, I’m not an expert with WordPress, and I only know that this will work with my setup. But I wanted to pass along the suggestion because I, personally, would find it very useful.
Thanks for your consideration!
The page I need help with: [log in to see the link]
- The topic ‘Request: Modify Infinite Scroll Code’ is closed to new replies.