Blog Images Are Being Cropped
Blog Images/Thumbnails Are Being Cropped
Karen avatar
Written by Karen
Updated over a week ago

Normally, you can use any image size for your posts and Divi will automatically crop and resize the images to optimize your pages and perfectly align it in the Blog module.

The ideal size for the Blog post items is 400x250px, but not less than that. This means it's  1:0.6 aspect ratio. You can use a bigger size for the images but make sure they have the correct aspect ratio. To calculate the correct size, you can use the following aspect ratio calculator: 

If you want to disable the cropping system completely for the Blog module, you can add the following code to the functions.php file in your child theme folder:

add_filter( 'et_pb_blog_image_width', 'custom_blog_image_width' );
add_filter( 'et_pb_blog_image_height', 'custom_blog_image_height' );

function custom_blog_image_width($width) { return '9999'; }
function custom_blog_image_height($height) { return '9999'; }

If you don't have a child theme installed, please check refer to this tutorial.

If you don't see any changes, you might need to regenerate thumbnails, here is the plugin for this:

Did this answer your question?