I’m using the “single author, big preview pic (featured image is big)” blog style. The featured image is being cropped in height and I want it to show full size (no change to the aspect ratio) in both the blog list and on the blog single post pages. What’s the CSS code to prevent the featured image from being cropped?
I’d like to know the same, please. Many thanks to the support team for the help.
Anyone have any ideas?
Hey!
Please go to Appearance > Editor and open Functions.php file and find
$avia_config['imgSize']['entry_with_sidebar'] = array('width'=>845, 'height'=>321); // big images for blog and page entries
$avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423 ); // images for fullsize pages and fullsize slider
and change the values as needed and then regenerate thumbnails using this plugin – https://wordpress.org/plugins/regenerate-thumbnails/
Regards,
Yigit
I’ll give that a try. Thanks.
Hi Yigit,
If I’m using the Enfold child theme, can I add that line of code to the child functions.php file, i.e., will that code overwrite the main theme’s code? Or, in this case, do I have to edit the Enfold theme’s function file directly?
Please advise.
Cheers,
Tim
Hey!
Yes, you can place it on the child theme or use this plugin: https://wordpress.org/plugins/simple-image-sizes/
Best regards,
Ismael
This worked great. Thank you!