• 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

Need Help Implementing Infinite Scroll W/ Genesis Grid

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 › Need Help Implementing Infinite Scroll W/ Genesis Grid

This topic is: not resolved

Tagged: genesis grid plugin, infinite scroll

  • This topic has 1 reply, 2 voices, and was last updated 10 years, 8 months ago by Ben @ Inbound Creative.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • September 28, 2014 at 10:02 am #126056
    lking31646
    Participant

    Hi All,
    I am trying to implement Jet Pack's infinite scroll on my site using the genesis sample theme. I am running into a few issues with the code I'm using:

    1. My code won't exclude the home page. http://mutedrides.com
    2. It doesn't work on the 'blog' page. http://mutedrides.com/blog/ . That page is using a custom template test.php .
    3. Need it to also work with the genesis grid plugin which I'm using on the category pages. Right now it only returns a single post instead of rows. example category page: http://mutedrides.com/category/cars/

    Any help would be appreciated. I'd be willing to pay a developer to help me resolve.

    Here is the code I'm using.

    //* Add a CSS ID to main element
    add_filter( 'genesis_attr_content', 'custom_attributes_content' );
    function custom_attributes_content( $attributes ) {
     
    	if ( !is_home() || is_archive() || is_page('blog')  )  {
    		$attributes['id'] = 'main-content-area';
    	}
    	return $attributes;
     
    }
     
    //* Add support for Jetpack infinite scroll
    add_theme_support( 'infinite-scroll', array(
    	// 'type' => 'click',
    	'container' => 'main-content-area',
    	'render' => 'genesis_do_loop'
    ) );
    
    //* Remove archive pagination
    // add_action ( 'genesis_after_entry', 'sk_remove_pagination' );
    function sk_remove_pagination() {
     
    		remove_action( 'genesis_after_endwhile', 'genesis_posts_nav' );
     
    }
    http://mutedrides.com
    September 29, 2014 at 3:37 am #126124
    Ben @ Inbound Creative
    Member

    Drop either @garyj or @sridar a shout on Twitter.


    Award winning web design in Liverpool | UK based Genesis Framework web designer and developer

  • 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

© 2025 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