WordPress.org

Forums

[Plugin: Jetpack's Infinite Scroll] Can't get "click" option to work (1 post)

  1. Kevin
    Member
    Posted 1 year ago #

    Hi guys,

    This is my first time trying to implement Jetpack's Infinite Scroll. Everything works fine with the default settings, but as soon as I try to set type => click the whole thing shuts off. Even when I go to my Reading settings after I do this it says that the theme does not support infinite scroll.

    Here's my code

    //Enable Infinite Scroll for Archives
    function tru_infinite_scroll_render() {
        get_template_part( 'content', '' );
    }
    add_theme_support( 'infinite-scroll', array(
        'container' => 'main',
        'render'    => 'tru_infinite_scroll_render',
        'type'	=> 'click'
    ));

    I don't have any footer widgets. Any clue? Does this only work if you have widgets in your footer?

Topic Closed

This topic has been closed to new replies.

About this Topic