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 3 replies, has 3 voices, and was last updated by  Bryan Morgan 1 year, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 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?

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

You must be logged in to reply to this topic.