How to disable WordPress cropping image modules
-
Whenever I add an image that is below a certain size (I believe 2000px), WordPress automatically crops the image module when I leave the visual builder. How do I disable this?
I’ve tried everything including inserting code into my child theme to disable image cropping on blogs, galleries, etc. I’ve also set my all image sizes in media to 0px. Nothing has worked so far. Here is an example of code I’ve tried to include:
// Begin remove Divi Gallery Module image crop
function pa_gallery_image_width( $size ) {
return 9999;
}
function pa_gallery_image_height( $size ) {
return 9999;
}
add_filter( ‘et_pb_gallery_image_width’, ‘pa_gallery_image_width’ );
add_filter( ‘et_pb_gallery_image_height’, ‘pa_gallery_image_height’ );
// End remove Divi Gallery Module image cropImages for reference:
- Visual Builder vs. Live Site


Any help is appreciated. Thank you!
The blog I need help with is: (visible only to logged in users)
-
Hi there,
From the information you have provided, it appears you are having a self hosted website, could you please share the website address you are working on?
-
Hi! it’s http://www.femmefloradesign.com. The page specifically is hidden http://www.femmefloradesign.com/home-new.
It does this for all of my pages that use photos under 2000px
-
Hi there!
Thank you for sharing the link to your site. It appears you’re using WordPress.org, and your site is likely hosted by Dreamhost. We can help with WordPress.com sites in this forum.
There are some differences between WordPress.com and WordPress.org. If you aren’t sure about them, please check the following page that explains it well: WordPress.com vs WordPress.org.
Since you’re using WordPress.org, the best place to get help is the WordPress.org support forum. Please post over there so folks more familiar with WordPress.org can help you with the issue you’re having.
Thanks!
-
- The topic ‘How to disable WordPress cropping image modules’ is closed to new replies.