How to adjust featured image size of a post on Home page

Community Forums Forums Design Tips and Tricks How to adjust featured image size of a post on Home page

This topic is: not resolved

This topic contains 4 replies, has 2 voices, and was last updated by  Brian Bourn 1 year, 1 month ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #22780

    Maxim
    Participant
    Post count: 15

    Hi,

    The featured image for post on the home page is too big and I could not adjust it.

    Can you please have a look at my website: http://www.maximsherstobitov.com/

    My current settings for HOME.PHP as per below:

    <?php

    remove_action( ‘genesis_loop’, ‘genesis_do_loop’ );
    add_action( ‘genesis_loop’, ‘eleven40_grid_loop_helper’ );
    /** Add support for Genesis Grid Loop */
    function eleven40_grid_loop_helper() {

    if ( function_exists( ‘genesis_grid_loop’ ) ) {
    genesis_grid_loop( array(
    ‘features’ => 1,
    ‘feature_image_size’ => 1,
    ‘feature_image_class’ => ‘alignleft post-image’,
    ‘feature_content_limit’ => 400,
    ‘grid_image_size’ => ‘grid-thumbnail’,
    ‘grid_image_class’ => ‘alignnone’,
    ‘grid_content_limit’ => 250,
    ‘more’ => __( ‘[Continue reading]‘, ‘genesis’ ),
    ) );
    } else {
    genesis_standard_loop();
    }

    }

    genesis();


    :: ​Connect with me via LinkedIn and Facebook
    ​​​:: Read my blog about Personal Growth and Business Development

    #22802

    Brian Bourn
    Participant
    Post count: 96

    You can change the grid thumbnail by editing this section of your functions.php file.

    /** Add new image sizes */
    add_image_size( 'grid-thumbnail', 270, 100, TRUE );

    Just change 270 or 100 to what you want.

    Depending on what you change it to, you may also need to change the image alignment in the grid loop code above to alignright or alignleft. Once you change the thumbnail sizes, you will need to upload new featured images or use the plugin regenerate thumbnails to create the new size.


    Bourn Creative | bourncreative.com | Twitter

    #22804

    Maxim
    Participant
    Post count: 15

    I have changed the 270 to 50 and remove the featured image then uploaded again. However the problem remained.

    I even tried to remove the featured image altogether  At the moment it is showing the first image from the post which is also has a massive size. What do you think it could be?


    :: ​Connect with me via LinkedIn and Facebook
    ​​​:: Read my blog about Personal Growth and Business Development

    #22806

    Maxim
    Participant
    Post count: 15

    It looks like WordPress does not re-size the featured image and simply uploads the original size.


    :: ​Connect with me via LinkedIn and Facebook
    ​​​:: Read my blog about Personal Growth and Business Development

    #22808

    Brian Bourn
    Participant
    Post count: 96

    After you change a featured image size, you will need to use the plugin to regenerate the new thumbnails from the original upload, or re-upload the images so the new size gets created.


    Bourn Creative | bourncreative.com | Twitter

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

You must be logged in to reply to this topic.