How To Add Posts To GENERATE Home Page

Community Forums Forums Design Tips and Tricks How To Add Posts To GENERATE Home Page

This topic is: not resolved

This topic contains 6 replies, has 2 voices, and was last updated by  braddalton 1 year, 7 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #27396

    julesonline
    Participant
    Post count: 24

    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

    #27432

    braddalton
    Participant
    Post count: 10243

    Go 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?


    #27434

    julesonline
    Participant
    Post count: 24

    Hi 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

    #27436

    julesonline
    Participant
    Post count: 24

    Brad

    Found the answer here http://www.studiopress.com/forums/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();

    #27528

    braddalton
    Participant
    Post count: 10243
    #27550

    julesonline
    Participant
    Post count: 24

    Hi 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 :)

    #27552

    braddalton
    Participant
    Post count: 10243
Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.