Balance Theme – Make 1st Post on Home Page Excerpt

Community Forums Forums Design Tips and Tricks Balance Theme – Make 1st Post on Home Page Excerpt

This topic is: resolved

This topic contains 3 replies, has 2 voices, and was last updated by  KathleenCD 1 year, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #51043

    KathleenCD
    Participant
    Post count: 22

    I want to show only an excerpt of the most recent post on my home page rather than the full article (Balance Theme). Making the blog page the home page is not a solution as I want to maintain the right & left header widgets. (See http://testsite2nl.com/)

    I see this question asked a number of times but can’t find the solution. I did try editing home.php – changing feature content from 0′ to 300′. That worked for the text but the image disappeared. I was afraid to tinker further and changed it back. How do I change it to an excerpt while keeping the image?

    Any suggestions would be appreciated.

    http://testsite2nl.com/
    #51052

    braddalton
    Participant
    Post count: 10217

    Shouldn’t remove the image.
    [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’ => 1,
    ‘feature_image_size’ => ‘feature’,
    ‘feature_image_class’ => ‘align none post-image’,
    ‘feature_content_limit’ => 300,
    ‘grid_image_size’ => ‘grid’,
    ‘grid_image_class’ => ‘align none post-image’,
    ‘grid_content_limit’ => 0,
    ‘more’ => __( ‘Continue reading…’, ‘genesis’ ),
    ‘posts_per_page’ => 6,
    ) );

    }

    else {
    genesis_standard_loop();
    }

    }

    genesis();
    [/php]

    This displays the featured image thumbnail and excerpt for the most recent post.

    The other posts display in a grid.

    Do you have this in functions:
    [php]
    add_image_size( ‘feature’, 620, 230, TRUE );
    [/php]


    #51057

    braddalton
    Participant
    Post count: 10217

    Didn’t see your other posts.

    Removing the grid is the best option by commenting the action out and then you can use the Genesis > Theme Settings > Content Archives.


    #51072

    KathleenCD
    Participant
    Post count: 22

    Thanks Brad. Worked like a charm for the post excerpt!

    Still working on commenting out the grid based on the instructions received in a separate post on the topic.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Balance Theme – Make 1st Post on Home Page Excerpt’ is closed to new replies.