Infinite scroll function for Twenty Seventeen

Well, I really should’ve done this to begin with, but I took a look at my NGINX logs while the infinite scroll would hang, and it turns out the NAXSI web application firewall module I’m using in NGINX is blocking infinite scroll due to anti-XSS/ant-SQL injection policies. Specifically it’s because of square brackets and usage … Read more

Infinite Scroll appending Next Product Category Term pages

I discovered Infinite Scroll has an updateurl function: var nextURL; function updateNextURL( doc ) { nextURL = $( doc ).find(‘.tax-pages a.next’).attr(‘href’); } // get initial nextURL updateNextURL( document ); // init Infinite Scroll var $container = $(‘#main’).infiniteScroll({ // use function to set custom URLs path: function() { return nextURL; }, hideNav: “.tax-pages”, append: “#main ul.products”, … Read more