• otaviovidal

    (@otaviovidal)


    Is there a way to scale up post thumbnails?

    On a featured div I want a post thumbnail/featured image with 584×348 px. When I use a smaller image as a featured image on a post, it won’t scale up to this size. If the image is 250×250, it will appear 250×250. But if I use a larger image as featured image on the post, it will resize normally.

    The thumbnail is set this way: add_image_size( 'post-thumb', 584, 348, true );

    The div:

    <div class="featured_thumb"><?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'post-thumb' ); } ?></div>

    And the class:

    .featured_thumb {background:#0C6; width:584px; height:350px; overflow:hidden;}

    Can someone help me to figure out how to do it?

  • The topic ‘How to scale up post thumbnails/featured image?’ is closed to new replies.