Divi – Making Blog Module Images Match Featured Image Ratios

Divi‘s Blog Module only displays images in landscape-ratio. This cuts off at the top & bottom of my Post’s portrait-ratio Featured Images. Here’s how Elegant Themes Divi tech support solved this issue.

This code goes in the Child Theme’s functions.php file, and allows Divi’s Blog Module to display my Featured Images at their true ratio. Yay!

add_filter( 'et_pb_blog_image_width', 'custom_image_width' );
function custom_image_width($width) {
return '9999';
}
add_filter( 'et_pb_blog_image_height', 'custom_image_height' );
function custom_image_height($height) {
return '9999';
}

Leave a Comment