• 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

homepage post display

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 › homepage post display

This topic is: resolved

Tagged: homepage, infinite scroll

  • This topic has 6 replies, 2 voices, and was last updated 9 years, 10 months ago by alexshenkar.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • July 31, 2013 at 8:27 pm #53478
    alexshenkar
    Member

    Hi Guys!

    I'm want to create a homepage with an infinite scroll. So what I'm looking for is a long singe column of posts.

    How do I do this?

    I tried Mocha and the Minimum theme, but they display one full post on the homepage, and then they show a summary of the remaining posts in two columns.

    How do I change this?

    Thanks!

    July 31, 2013 at 8:32 pm #53481
    Brad Dalton
    Participant

    Jetpack includes infinite scroll or you can install a separate plugin and then display full content posts rather than excerpts.


    Tutorials for StudioPress Themes & WooCommerce.

    August 1, 2013 at 8:26 am #53540
    alexshenkar
    Member

    Hi Brad, Thanks for your input.

    I think there are two things which I'm trying to do.

    The first, I want to create a single column of posts on the home page.
    The second issue is that I want to enable the infinite scroll.

    I'd like to focus on getting the posts to show up in a single column first, and then once that's working, I can make the infinite scroll part work too.

    To be more specific about a single column of posts, take a look at this demo homepage:

    http://demo.studiopress.com/mocha/

    You see how you have one post at the top in full length, and then four post excerpts at the bottom? Thats what I'm trying to change.

    I would like for the homepage to look more like this:

    http://demo.studiopress.com/streamline/

    You see how you have the posts in one column - that's what I'm going for. Then, after that is set, I'd like to make the infinite scroll work.

    Any help or input is greatly appreciated.

    Thanks!
    -Alexander

    August 1, 2013 at 8:54 am #53545
    Brad Dalton
    Participant

    Which theme are you using?


    Tutorials for StudioPress Themes & WooCommerce.

    August 1, 2013 at 9:26 am #53554
    alexshenkar
    Member

    Hi Brad, I'm using the Mocha theme right now. But I noticed that many of the genesis child themes have the same setup on the homepage. Hopefully the solution isn't tied to which theme I'm using. Thanks for your help. -Alexander

    August 1, 2013 at 10:02 am #53562
    Brad Dalton
    Participant

    You can simply change the settings in the home.php file to display features:

    <?php
    
    remove_action( 'genesis_loop', 'genesis_do_loop' );
    add_action( 'genesis_loop', 'child_grid_loop_helper' );
    /** Add support for Genesis Grid Loop **/
    function child_grid_loop_helper() {
    
    	if ( function_exists( 'genesis_grid_loop' ) ) {
    		genesis_grid_loop( array(
    			'features' => 5,
    			'feature_image_size' => 0,
    			'feature_image_class' => 'alignleft post-image',
    			'feature_content_limit' => 10000,
    			'grid_image_size' => 0,
    			'grid_image_class' => 0,
    			'grid_content_limit' => 0,
    			'more' => __( '[Continue reading]', 'genesis' ),
    			'posts_per_page' => 5,
    		) );
    	} else {
    		genesis_standard_loop();
    	}
    
    }
    
    genesis();
    

    Tutorials for StudioPress Themes & WooCommerce.

    August 2, 2013 at 8:19 am #53732
    alexshenkar
    Member

    Hi Brad - thanks for your help. I think that code snippet will get me where I need to go. I can take it from here. Thanks 🙂

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘homepage post display’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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