Hi,
I am using the ‘blog posts’ element in my page builder,
The featured image of the posts is too small: 80×80. I tried to change it in the blog posts configuration, but I did not succeed to remain feature image in the correct size and text besides it.
Can you please help?
Hey eyeweb!
Add this to your custom CSS.
a.small-preview, a.small-preview img {
width: 120px !important;
height: 120px !important;
}
Best regards,
Elliott
Thank you Elliott, but why are the thumbnails stretched? (the original images are 800×600)
Hey!
You can change the size on line 118 in the /enfold/functions.php file.
$avia_config['imgSize']['square'] = array('width'=>180, 'height'=>180); // small image for blogs
Make sure to regenerate the thumbnails afterwards, http://wordpress.org/extend/plugins/regenerate-thumbnails/.
Best regards,
Elliott
Thank you Elliott, is it ok to paste this code as it is in my functions.php file in my child theme?
Hi!
You can add following code to functions.php file of your child theme
add_filter( 'avf_modify_thumb_size', 'enfold_customization_modify_thumb_size', 10, 1 );
function enfold_customization_modify_thumb_size( $size ) {
$size['square'] = array('width'=>180, 'height'=>180);
return $size;
}
adjust as needed then regenerate the thumbnails afterwards, http://wordpress.org/extend/plugins/regenerate-thumbnails/.
Best regards,
Yigit
I added the code than regenerated thumbnails.
The images are still stretched.
For example:
Shalom!
Please go to Settings > Media and change thumbnail sizes to 180x120px
Best regards,
Yigit
Thank you Yigit!