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

    (@samikeijonen)

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

    Thread Starter ParachuteOnFire

    (@parachuteonfire)

    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)

    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.

    Thread Starter ParachuteOnFire

    (@parachuteonfire)

    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 https://www.rockonfire.mx/

    Theme Author Sami Keijonen

    (@samikeijonen)

    Nice!

    Theme Author Sami Keijonen

    (@samikeijonen)

    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.

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

    Thread Starter ParachuteOnFire

    (@parachuteonfire)

    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.