WordPress.org

Support

Support » Themes and Templates » add_image_size not re-sizing thumbnails to specified dimensions

add_image_size not re-sizing thumbnails to specified dimensions

  • First off here is the set of code I used //

    set_post_thumbnail_size('small' ,75,200, false);
    add_image_size( 'small',75, 200, false);

    My issue is that the thumbnails are not changing.
    I would like a height of 200px and width of 75px.
    I believe the width is working correctly but the height doesn’t work…
    The thumbnails totally shrink instead of stretching to 200px height they become 56px height…

    How can I fix this?

Viewing 1 replies (of 1 total)
  • paulwpxp

    @paulwp

    Font hero

    2 things to check.

    First, with soft crop mode, the image you upload must has the same ratio as the size assigned, in this case your uploading image must has 75:200 dimension.

    Secondly, the final displaying image is also controlled by CSS, so check if the theme’s CSS functioning according to this image size.

Viewing 1 replies (of 1 total)
  • The topic ‘add_image_size not re-sizing thumbnails to specified dimensions’ is closed to new replies.
Skip to toolbar