Community Forums › Forums › Archived Forums › Design Tips and Tricks › homepage post display
Tagged: homepage, infinite scroll
- This topic has 6 replies, 2 voices, and was last updated 9 years, 10 months ago by
alexshenkar.
-
AuthorPosts
-
July 31, 2013 at 8:27 pm #53478
alexshenkar
MemberHi 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 #53481Brad Dalton
ParticipantJetpack includes infinite scroll or you can install a separate plugin and then display full content posts rather than excerpts.
August 1, 2013 at 8:26 am #53540alexshenkar
MemberHi 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!
-AlexanderAugust 1, 2013 at 8:54 am #53545Brad Dalton
ParticipantAugust 1, 2013 at 9:26 am #53554alexshenkar
MemberHi 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 #53562Brad Dalton
ParticipantYou 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();
August 2, 2013 at 8:19 am #53732alexshenkar
MemberHi 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 🙂
-
AuthorPosts
- The topic ‘homepage post display’ is closed to new replies.