Integration with Jetpack Infinite Scroll

Community Forums Forums Design Tips and Tricks Integration with Jetpack Infinite Scroll

This topic is: not resolved

This topic contains 5 replies, has 5 voices, and was last updated by  buddy_boy8403 6 months, 2 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #3079

    TishaOehmen
    Participant
    Post count: 15

    I’m trying to integrate the new jetpack infinite scroll (http://jetpack.me/support/infinite-scroll/)  into a genesis child theme (modified driskill), but it doesn’t seem to be working as expected. Has anyone successfully integrated it at this point? Is there a code snippet available?


    Tisha Oehmen, Paradux Media Group
    Twitter: @TishaOehmen

    #3163

    nickthegeek
    Keymaster
    Post count: 751

    I just did this yesterday. I’m still working with it because there is some output I’m not super excited with, but this is the code you can add to your functions.php file

    /**
    * Add theme support for infinite scroll
    *
    * @uses add_theme_support
    * @action after_setup_theme
    * @return null
    */
    function ntg_infinite_scroll_init() {
    add_theme_support( 'infinite-scroll', array(
    'container' => 'content',
    'footer' => 'footer',
    'render' => 'genesis_do_loop'
    ) );
    }
    add_action( 'after_setup_theme', 'ntg_infinite_scroll_init' );

    I’ll be writing a tutorial on this once I’m happy with everything.

    #3206

    TishaOehmen
    Participant
    Post count: 15

    Cool thanks so much Nick! I’ll give it a try and be sure to watch for you tutorial. :)


    Tisha Oehmen, Paradux Media Group
    Twitter: @TishaOehmen

    #5463

    Bryan Morgan
    Participant
    Post count: 1

    I too would like to add this feature but now run about 20 sites built on Genesis Child themes.  Is this something that may naturally make its way into something like Genesis 1.9?

    #104364

    Ronz
    Participant
    Post count: 5

    Yes, I would like to see “Infinite Scroll” added to all Genesis themes please.

    #104474

    buddy_boy8403
    Participant
    Post count: 132

    Awesome, Nick… Thanks for the snippet.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.