Adding Featured Images onto Homepage Minimum Theme

Community Forums Forums General Discussion Adding Featured Images onto Homepage Minimum Theme

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  nutsandbolts 9 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #72377

    sfigueroa
    Participant
    Post count: 1

    I am trying to add the featured image associated with each blog post so it can show up on the homepage. I tried the code below but it didn’t work. Can someone help?

    My site is http://www.chicagohousebuzz.com/

    *******************************************
    //* Genesis grid loop
    function minimum_grid_loop_helper() {

    if ( function_exists( ‘genesis_grid_loop’ ) ) {
    genesis_grid_loop( array(
    ‘features’ => 0,
    ‘feature_image_size’ => 0,
    ‘feature_content_limit’ => 0,
    ‘grid_image_size’ => 150,
    ‘grid_content_limit’ => 100,
    ‘more’ => __( ‘[Read more]‘, ‘minimum’ ),
    ) );
    } else {

    genesis_standard_loop();

    }

    }

    http://www.chicagohousebuzz.com
    #72381

    nutsandbolts
    Moderator
    Post count: 3128

    For the grid image size, instead of a number, you’ll need to assign an image size. So in functions.php, you’d want to use something like this to show thumbnails:

    // Add grid thumbnails
    add_image_size('grid-thumbnail', 150, 150, TRUE);

    Then for grid_image_size, use 'grid_image_size' => 'grid-thumbnail', instead of 'grid_image_size' => '150', and it should display them correctly.


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    • This reply was modified 9 months, 3 weeks ago by  nutsandbolts.
    • This reply was modified 9 months, 3 weeks ago by  nutsandbolts.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.