Gday Kriesi
I notice that the single blog page featured image standard big image preview has a function for cropping the image.
I’m encouraging the use of the featured image, rather than adding it into page content layout, so would love to be able to do this.
Is it possible to modify the function to instead keep the image in the original height-and-width ratios, rather than cropping?
cheers
Darryl
Hi itchybrain!
Try editing line 127 in /enfold/functions.php.
$avia_config['imgSize']['entry_with_sidebar'] = array('width'=>845, 'height'=>321); // big images for blog and page entries
And then use this plugin to refresh the images, https://wordpress.org/plugins/regenerate-thumbnails/.
Cheers!
Elliott
Hi Elliot
Thanks for your help with this.
My images will be both landscape and portrait images, so I can’t put a setting in here that constrains to one ratio or sizing. I’m hoping that the preview can be just the original ratio regardless of the image orientation, but fitting 100% width of the post setting.
Is there a way that can be achieved via featured image and a different edit of that functions file?
cheers
Darryl
Hi!
You can set it to full so it loads the image in it’s original dimensions but it sounds like your trying to do some CSS editing? Send us a link to the exact page and take a screenshot highlighting what your trying to do so we can get a better idea.
Cheers!
Elliott
Hi Elliot.
Thanks for your help with this. I have found a way to do it via the individual blog post interface. It seems that setting an ‘image post’ rather than a ‘standard post’ achieves the effect I was after, which is for the image to retain it’s full area without being cropped to a different ratio.
Good point re the screenshot, I will do that in future so it’s easier to understand.
cheers
Darryl