Community Forums › Forums › Archived Forums › Design Tips and Tricks › How To Add Posts To GENERATE Home Page
- This topic has 6 replies, 2 voices, and was last updated 11 years, 1 month ago by Brad Dalton.
-
AuthorPosts
-
March 16, 2013 at 12:42 am #27396julesonlineMember
Hi All
I having issues with Generate (and can't believe I am lost on this) but for the life of me I cannot get the home page to show posts with eg 300 words then the normal Read More link plus a featured image left hand side, oh and be great to have the actual post title showing!Even the demo of Generate has posts showing home page. I am hoping i have missed something stupidly easy as its been years since i built a blog with the home page showing latest posts.
Any help/advice/tips would be awesome please!!
Regards
Julie
March 16, 2013 at 2:14 am #27432Brad DaltonParticipantGo to Settings > Reading and make sure the Front page displays > Your latest posts
Then go to Genesis > Theme Settings > Content Archives and Display post content > Limit content to 300 characters > Include the Featured Image?
March 16, 2013 at 2:22 am #27434julesonlineMemberHi Brad,
Thats all done but still shows the full post. Is it that I only have one post publish ? Does it alter when two or more posts are published?
Thank you
Regards
Jules
March 16, 2013 at 2:31 am #27436julesonlineMemberBrad
Found the answer here http://www.studiopress.community/topic/generate-theme-post-excerpt-not-working/ and even the image is showing left hand side but when you click the post title or continue reading the featured image then shows up on the full post "page". Would you happen to know how to stop it doing that please? Must be in that same coding in the home.php file ... maybe?
<?php
/** Add Generate Box after header **/
add_action( 'genesis_after_header', 'generate_box', 10 );
function generate_box() {if ( is_active_sidebar( 'generate-box' ) ) {
echo '<div id="generate-box"><div class="wrap">';
dynamic_sidebar( 'generate-box' );
echo '</div><!-- end .wrap --></div><!-- end #generate-box -->';
}}
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' ) ) {
remove_action( 'genesis_before_post_content', 'generate_post_image', 5 );
genesis_grid_loop( array(
'features' => 2,
'feature_image_size' => 'featured',
'feature_image_class' => 'alignleft post-image',
'feature_content_limit' => 300,
'grid_image_size' => 'grid',
'grid_image_class' => 'alignleft post-image',
'grid_content_limit' => 0,
'more' => __( 'Continue reading...', 'genesis' ),
'posts_per_page' => 6,
) );
} else {
genesis_standard_loop();
}}
genesis();
March 16, 2013 at 4:38 am #27528Brad DaltonParticipantMarch 16, 2013 at 5:27 am #27550julesonlineMemberHi Brad 🙂
Thank you so much!!!! I just had a fiddle with one SIMPLE section from the information from your site and BINGO! In the home.php I also changed 'feature_image_size' => 'thumbnail', (featured to thumbnail) and of course looking at your information it dawned on me after I emailed (apologies for that 🙂 ) to un-tick the featured image under Content Archives!
Finally can finish this site.. your brilliant! Have an awesome weekend Brad..
Regards
Julie 🙂
March 16, 2013 at 5:39 am #27552Brad DaltonParticipant -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.