Support » Theme: Path » Infinite Scroll Jetpack Support

Viewing 7 replies - 1 through 7 (of 7 total)
  • Theme Author Sami Keijonen

    (@samikeijonen)

    Member

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

    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

    Theme Author Sami Keijonen

    (@samikeijonen)

    Member

    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.

    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/

    Theme Author Sami Keijonen

    (@samikeijonen)

    Member

    Nice!

    Theme Author Sami Keijonen

    (@samikeijonen)

    Member

    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.

    Path Child

    I appreciate it Sami

    Cheers!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Infinite Scroll Jetpack Support’ is closed to new replies.