Suppress Infinite Blog with WooCommerce
-
I’m using Jetpack’s infinite blog to display posts. I also use WooCommerce to control my gift shop items.
Problem is that WooCommerce uses Jetpack’s infinite scroll function. How could I make WooCommerce to maintain pagination?
I’ve tried modifying the add_theme_support line in functions.php like this…
function init_infinite_scroll() { if ( !is_page( 'woocommerce' ){ add_theme_support( 'infinite-scroll', array( _ARGS ) ); } }
But that didn’t work.
I also tried controlling where new content is appended by changing the container name from ‘content’ (the default) to ‘infinite-content.’
function init_infinite_scroll() { add_theme_support( 'infinite-scroll', array( 'container' => 'infinite-content', ) ); }
So far that doesn’t work either.
Does anyone have any ideas? How do I disable infinite scroll functionality on specific pages like WooCommerce product pages?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Suppress Infinite Blog with WooCommerce’ is closed to new replies.