• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

'Next Page' to use Infinite Scroll

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › 'Next Page' to use Infinite Scroll

This topic is: not resolved

Tagged: infinite scroll

  • This topic has 1 reply, 2 voices, and was last updated 11 years, 11 months ago by Winterburn.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 8, 2014 at 10:42 am #113432
    daveszt
    Member

    I have implemented Infinite scroll through Jetpack on my site http://www.heyuguys.com and have it working on the categories using the code below but I'd like to have it do when we have a list post e.g.: using the 'next page' function, that when the user scrolls down, the next page automatically appears underneath the content already loaded content. Is this possible?

    What the Latest Guardians of the Galaxy Trailer Tells us About the Movie

    * 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' );
    if (is_category('competitions')) return;

    Thanks.

    Dave

    http://www.heyuguys.com/10-things-latest-guardians-of-the-galaxy-trailer-tells-us-movie/
    August 25, 2014 at 7:47 am #120893
    Winterburn
    Participant

    You could try the function below

    add_action( 'after_setup_theme', 'custom_infinite_scroll' );
    function custom_infinite_scroll() {

    add_theme_support( 'infinite-scroll', array(
    'container' => 'main-content-area',
    'footer' => false,
    'type' => 'click',
    'render' => 'genesis_do_loop',
    )

    );
    }

    Have fun.


    http://nhatdong.com

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble