Even with the right upload size, Divi sometimes insists on cropping your featured images. Here are two reliable fixes you can apply — one quick CSS tweak, and one safer developer approach.
1. CSS Fix (Quick and Easy)
If Divi’s Blog Module is cropping your images to a fixed aspect ratio, you can override it with custom CSS.
Go to Divi → Theme Options → Custom CSS and paste this:
.et_pb_image_container img {
object-fit: cover;
height: auto;
width: 100%;
}
This tells Divi to display the full image proportionally rather than force-cropping it. The object-fit property is the hero here — it makes sure your images fill their container without distortion.
Best for: Non-technical users who want a quick fix without touching theme files.
2. functions.php Fix (Developer-Friendly)
If you want total control, register custom image sizes that align with Divi’s column widths. Add this code to your child theme’s functions.php file:
function custom_divi_image_sizes() {
add_image_size(‘divi_full’, 1080, 0, false); // full width
add_image_size(‘divi_two_third’, 700, 0, false);
add_image_size(‘divi_half’, 510, 0, false);
add_image_size(‘divi_one_third’, 320, 0, false);
}
add_action(‘after_setup_theme’, ‘custom_divi_image_sizes’);
Then, install and run the Regenerate Thumbnails plugin so WordPress creates these sizes for all your existing images.
Best for: Developers or site owners who want consistent sizing across all posts and layouts.
Social Sharing, Open Graph, and Structured Data
Here’s a trap many Divi users fall into: an image looks perfect on the site but shows up cropped or pixelated when shared on Facebook or LinkedIn. That’s because social platforms pull from Open Graph (OG) tags, not from what Divi displays.
Best practice:
By separating social images from Divi images, you guarantee both look their best — no matter the platform.