• Resolved saratcollins

    (@saratcollins)


    Hello,

    I’ve set up this plugin (thanks!) and it looks good, except the images are wider than I’d like. I want to use the featured images on my blog, and set it to this, but because on the blog they are sizes 1200 x 500 pixels, when I set them height I want, they are so wide and taking up valuable space of the recent posts widget…

    On other hand, if I make the images square, they stretch out and look funny.

    Is there a way to customize the featured images in this widget so that they would “fill” a space and crop off excess parts of the image (rather than stretching)? Ideally a square or 4:3.

    Thanks. My site is set to private at the moment.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Martin Stehle

    (@hinjiriyo)

    Read that answer.

    In add_image_size() replace the size of the thumbnail of 200 x 100 px to the values you need.

    Thread Starter saratcollins

    (@saratcollins)

    Thanks. This is what I’ve done:

    Open the file “functions.php” of the theme and add the line add_image_size( ‘sidebarthumb’, 200, 100, true );. Save, close and upload the file.

    In the WP backend install the plugin “Regenerate Thumbnails” by Alex Mills (Viper007Bond) and run it once.

    – I’m not sure if I did this correct. I uploaded the “Regenerate Thumbnails” by Alex Mills (Viper007Bond) and activated it. But perhaps I have to do something more?

    On the Widgets page in the “Recent Posts Widget With Thumbnails” widget set the thumbnail size to “sidebarthumb”

    – I could not find how to set thumbnail size to “sidebarthumb” in the “Recent Posts Widget With Thumbnails” widget.

    Plugin Author Martin Stehle

    (@hinjiriyo)

    Go to “Tools” > “Regenerate Thumbnails” and follow the instructions.

    Thread Starter saratcollins

    (@saratcollins)

    I regenerated the thumbnails for featured images now. Still not seeing “sidebarthumb” anywhere in the Recent Posts Widget with Thumbnails.
    Not sure what I’m not doing right!

    Plugin Author Martin Stehle

    (@hinjiriyo)

    Maybe the new code is at a wrong place within the function file of the theme? Is it really executed?

    Plugin Author Martin Stehle

    (@hinjiriyo)

    No answer so I mark that topic as resolved.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Possible to “fill” image to a certain size’ is closed to new replies.