Hi HelpMeHelpYou,
I found a much better solution meanwhile. With this approach you don’t need WP Page Navi plugin anymore (1 plugin less, a bit faster website).
Please put this code in your child theme’s functions.php:
/**
* Infinite Scroll
*/
function custom_infinite_scroll_js() {
if( ! is_singular() ) { ?>
<script>
var infinite_scroll = {
loading: {
img: 'data:image/gif;base64,R0lGODlhAQABAHAAACH5BAUAAAAALAAAAAABAAEAAAICRAEAOw==',
msgText: '<?php _e( '<i class="fa fa-cog fa-spin"></i>Fetching...', 'custom' ); ?>',
finishedMsg: "<?php _e( 'All articles fetched.', 'custom' ); ?>"
},
"nextSelector":".pagination a:last-child",
"navSelector":".pagination",
"itemSelector":".post-row",
"contentSelector":".post-list"
};
jQuery( infinite_scroll.contentSelector ).infinitescroll( infinite_scroll );
</script>
<?php
}
}
add_action( 'wp_footer', 'custom_infinite_scroll_js',100 );
This approach works for me and I believe should for you too. However, you never get to the bottom of the site with this approach. The footer region has some space for widgets, which is valuable real estate. Hence, I used a “Load More” button to load posts progressively. You can find this functionality on my journal’s homepage.
This functionality is slightly more complicated and if you’d like to have this functionality, you have to make some modifications at several places.
To answer your query in short, yes. Infinite scrolling works with the Hueman theme.
Best Regards,
Mithun