0

Below is the code i used to set my thumbnail sizes. The Only problem I'm having is that my thumbnails won't resize to fit the size below or the <div>

add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 760, 330, true ); // Normal post thumbnails

Some images may be small but shouldn't they stretch themselves to proportion to fit the thumbnail size specified in the code above. Can any one tell me hop i can accomplish this. I have also tried adding a thumbnail size and calling it and it still didn't work.

I have also used the 'Thumbnail Regenerator' plugin to regenerate size, but they still don't fit. Why is this.

Here is an example below, notice that the second thumbnail doesn't fit.

enter image description here

  • "Some images may be small but shouldn't they stretch themselves to proportion to fit the thumbnail size specified in the code above." ... if they are smaller then the content, then they won't get upscaled (and if, then only with a decent loss of quality). – kaiser Oct 18 '14 at 1:43
0

change true to false in set_post_thumbnail_size( 760, 330, true )

add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 760, 330, false );

This will make it not crop automatically.

  • That didn't help it only only made the images smaller – user32447 Oct 17 '14 at 20:58
  • The 3rd value is crop. – kaiser Oct 18 '14 at 1:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.