Infinite scroll functions breaking site
-
Hi,
I’m trying to get the infinite scroll option working on my site, I have it all working on localhost but when I upload it all it breaks my site, everything is just a white/blank screen.
I figured the problem is coming from the code I put in the functions.php which is this:
function news_infinite_scroll_setup() { add_theme_support( 'infinite-scroll', array( 'type' => 'click', 'container' => 'wrapper', ) ); } add_action( 'after_setup_theme', 'news_infinite_scroll_setup' );
I think the problem is coming from this bit:
'type' => 'click', 'container' => 'wrapper',
and
add_action( 'after_setup_theme', 'news_infinite_scroll_setup' );
They seem to be the bits that are causing me bother.
Any help would be great,
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Infinite scroll functions breaking site’ is closed to new replies.