WordPress.org

Ready to get started?Download WordPress

Forums

Path
[resolved] Infinite Scroll Jetpack Support (8 posts)

  1. ParachuteOnFire
    Member
    Posted 10 months ago #

    Has anyone tried adding support Infinite Scroll from Jetpack plugin? Instruction are here

    http://jetpack.me/support/infinite-scroll/

    Would be helpful to know the final code to be added

  2. Sami Keijonen
    Member
    Theme Author

    Posted 10 months ago #

    No, but that seems pretty good instructions. You just need to use that code in child theme.

  3. ParachuteOnFire
    Member
    Posted 10 months ago #

    Can you help me telling exactly what part of the code in the whole article should I use?

    And if I shall change any parameters ir it´s just a copy/paste thing?

    Best regards Sami

  4. Sami Keijonen
    Member
    Theme Author

    Posted 10 months ago #

    add_theme_support( 'infinite-scroll' ) is what you need. But I'd need to play around to parameters before I can tell you exactly how it goes.

    Feel free to play around with it and share to code with us when you're done.

  5. ParachuteOnFire
    Member
    Posted 9 months ago #

    Added to functions.php the following code:

    /**
    * Add theme support for infinity scroll
    */

    add_theme_support( 'infinite-scroll', array(
    'type' => 'scroll',
    'footer_widgets' => false,
    'container' => 'content',
    'wrapper' => true,
    'render' => false,
    'posts_per_page' => false
    ) );

    And worked perfectly, you can see it working live at http://www.rockonfire.mx/

  6. Sami Keijonen
    Member
    Theme Author

    Posted 9 months ago #

    Nice!

  7. Sami Keijonen
    Member
    Theme Author

    Posted 9 months ago #

    One thing that I noticed that you're using parent theme. Code should be in child theme functions.php. Otherwise you will lose it when you update the theme.

    Here is premade child theme for you.

    http://themehybrid.com/themes/path-child

  8. ParachuteOnFire
    Member
    Posted 9 months ago #

    I appreciate it Sami

    Cheers!

Reply

You must log in to post.

About this Theme

About this Topic