Sometimes you have no control over the sizing of the images going in to a Gallery or Portfolio in Divi. If you are adding big volumes of supplied images there is a quick way to make these a standard size.

You can use the following code for the gallery, just adjust the height to the desired look.


/* GALLERY image heights EVEN */
.et_pb_gallery_grid .et_pb_gallery_image,
.et_pb_gallery_grid .et_pb_gallery_image.landscape img
height: 170px !important;
.et_pb_gallery_grid .et_pb_gallery_image img
min-height: 170px;


For the Portfolio I head to the Divi Booster plugin and under modules you can set the height and width.

Portfolio thumbs

We used this code & plugin on the following sites:

Midway Flooring

Looking to get your business seen? Then see us.

Web Site Developer Auckland | North Shore | Matakana | Warkworth | Omaha

Call 021 158 1400 for Web Design North Shore, Auckland

Share This