Archived topic
fix size images in entries
3 replies · Started by casimiro on March 27, 2019
Hi
How can I set the size of the images in the entries so they are the same? Each one comes out in a different size on the home page.
Hi there,
make sure you have the Blog module activated in Appearance > GeneratePress.
Then in Customizer > Layout > Blog --> Featured Images > Archives you can set the width and height you want them to be displayed.
All of this is proven and whatever you do, the images are always the same. The proportion doesn't apply and they don't all dry the same. I want all the images to look the same in size.
Aah ok, that only applies to featured images, to effect the images and the videos you can try this CSS:
.generate-columns-activated .entry-content img,
.generate-columns-activated .entry-content iframe {
width: 250px;
height: 160px;
object-fit: cover;
}
Please note that this will crop portrait images that are being displayed but there is not much that can be done about that.