WordPress.org

Forums

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

  1. ParachuteOnFire
    Member
    Posted 1 year 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
    WordPress-asiantuntija
    Theme Author

    Posted 1 year ago #

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

  3. ParachuteOnFire
    Member
    Posted 1 year 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
    WordPress-asiantuntija
    Theme Author

    Posted 1 year 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 1 year 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
    WordPress-asiantuntija
    Theme Author

    Posted 1 year ago #

    Nice!

  7. Sami Keijonen
    WordPress-asiantuntija
    Theme Author

    Posted 1 year 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 1 year ago #

    I appreciate it Sami

    Cheers!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic