0

Through the WordPress customizer, I want to crop some square images to be in the ratio of 400 x 250.

I'm concerned that doing so would crop the images from top left though.

Can the cropping occur from direct center of the image?

Help appreciated. Thanks.

Steve
  • 2,066
  • 13
  • 60
  • 115

1 Answers1

0

I used this answer to generate the following CSS:

.search .et_pb_post a img {
    max-width: 100%;
    object-fit: cover;
    width: 100%;
    max-height: 250px;
}

This worked for me.

Steve
  • 2,066
  • 13
  • 60
  • 115