Minimum Pro: Front Page Featured Image Thumbnails

Community Forums Forums Design Tips and Tricks Minimum Pro: Front Page Featured Image Thumbnails

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  Dan 10 months, 2 weeks ago.

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

    Dan
    Participant
    Post count: 22

    Hi all,
    Trying to implement thumbnails in the Minimum Pro front page blog posts.

    Working through other posters’ information, I’ve changed the ‘grid_image_size’ setting in the “minimum_grid_loop_helper”, to get the thumbnail to display, but I can’t seem to dictate what size the thumbnail is to be.

    I just noticed that another MP site referenced in a post here has 150×150 thumbnails, so I’m clearly overlooking something simple.

    Any pointers much appreciated!

    Thanks

    http://chh.seokickstart.com.au/
    #61627

    Dan
    Participant
    Post count: 22

    Wohoo! Figured it out. For reference for others:

    In functions.php, add your desired image sizes

    
    //* Add new image sizes
    add_image_size( 'portfolio', 540, 340, TRUE );
    add_image_size( 'your-thumbnail-image-name', 240, 100, TRUE );
    

    (Note: If you do this after uploading the images you want to use, grab the Regenerate Thumbnails plugin and run it)

    Next modify the following grid loop helper section of front-page.php to:

    `//* 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’ => ‘insert-your-thumbnail-image-name-you-created-here’,
    ‘grid_image_class’ => ‘alignleft post-image’,
    ‘grid_content_limit’ => 200,
    ‘more’ => __( ‘[Read more]‘, ‘minimum’ ),
    ) );
    } else {

    genesis_standard_loop();

    }

    }
    `
    And that should do you. :)

    • This reply was modified 10 months, 3 weeks ago by  Dan. Reason: formatting
    • This reply was modified 10 months, 3 weeks ago by  Dan.
    • This reply was modified 10 months, 3 weeks ago by  Dan. Reason: formatting
    • This reply was modified 10 months, 3 weeks ago by  Dan.
    #62246

    baconzoo
    Participant
    Post count: 8

    thanks for this, it took me a while to figure it out but the code you pasted has the wrong ‘ character

    • This reply was modified 10 months, 2 weeks ago by  baconzoo.
    • This reply was modified 10 months, 2 weeks ago by  baconzoo.
    #62426

    Dan
    Participant
    Post count: 22

    Hi @baconzoo – yeah I did the old copy / paste trick, but that grid loop section wouldn’t pick up the code tags, so it’s presented as text. Been caught out like that a couple times myself. Glad you got it sorted though. :)

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

You must be logged in to reply to this topic.