Community Forums › Forums › Archived Forums › Design Tips and Tricks › Featured Images not resized to widget specifications? Lifestyle Pro
- This topic has 2 replies, 1 voice, and was last updated 8 years, 4 months ago by reemalhashmi.
November 22, 2014 at 3:29 am #132482
I decided to repost this issue requesting a different take on it. I'm using the Lifestyle Pro theme and with it you are able to specify which blog post to display in each widget area (In my case, "Latest Post", "Random from the Blog!" etc.) and the post's featured image is displayed. One of the widget options is to choose the size of the thumbnails of the featured image of a post, from thumbnail, large or small. Now this is my problem, the images do not get resized. They are displayed either in their normal dimensions, or the size I chose, it does that on its own, whatever it feels like lol! I'm really lost, is there a code snippet I could insert to make the images get resized/displayed according to what I specify in the widget options? Supposedly that's what the theme is supposed to do, but it's not doing that and I don't know why! There might be a bug of some sort, I do not know!
Please help me with this, it is much appreciated!http://www.reemalhashmi.comNovember 22, 2014 at 4:04 am #132483
Adding that I have also inserted this code snippet in my Functions.php file and still, they are not being resized:
//* Add new featured image sizes add_image_size( 'home-middle', 634, 360, TRUE ); add_image_size( 'home-top', 634, 360, TRUE ); add_image_size( 'home-bottom-left', 266, 160, TRUE ); add_image_size( 'home-bottom-right', 266, 160, TRUE );November 22, 2014 at 4:48 am #132485
Sorry about that, I got confused. My issue is not resizing the images, rather cropping them to be in the dimensions I desire. Heres what I mean, is there a way to have them cropped randomly according to the dimensions specified in my previous post for only the Home middle widget? For example, the widget is set to keep the featured images at 634 x 360 , but images that are bigger than that are displayed fully and not cropped into 634 x 360. Is there a way to have them randomly cropped into that dimension? If I manually crop the thumbnails for the post, then for the home bottom right/left, they will also be cropped if they're displayed randomly in that widget area, and I actually want them to be displayed fully.
Here's an example:
The thumbnail on the left (red image) is manually cropped to be "horizontal"-ish to fit the home-middle widget (which is 634 x 360), when displayed randomly on that home-middle widget, it looks perfectly fine. However, as with the case in the photo above, if its randomly displayed on the home-left widget area, it is cropped, when I would like it to be viewed as the original uncropped image, similar to the one beside it on the right.
What I'm asking for is, can the image be automatically and randomly cropped for the home-middle widget instead of me having to manually crop it and 'distorting' it when it appears on other widget areas? It used to do that on it's own, but somehow now it displays the entire image unless I crop the thumbnail manually. So again, it's not an issue of resizing, rather it is about cropping the thumbnail to the specified dimensions only for the home-middle widget.
Thanks in advance and sorry for my confusion!
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.