Archived topic
Make all image size in Volume generatepress theme same
5 replies · Started by Alief on March 19, 2022
Hello I use the Volume starter site on the Genereatepress theme
I know we need to upload the image to the recommended size, but sometimes some images can't be cropped to the same size
Is there any way to force the image to same size on my homepage when viewed on desktop?
Hi there,
you can use this CSS to force the images to be the same aspect rqtio:
.dynamic-featured-image.wp-post-image {
aspect-ratio: 768 / 438;
object-fit: cover;
}
However you have some large disparity between your images aspect ratios so you may need to replace some images....
Could this be a feature request to bake this (and related) functionality into the Dynamic Image block?
Hi there,
we will be introducing an Image Block in GenerateBlocks that will replace the dynamic image block, and that has width and height attributes along with object-fit style controls so you will be able to do similar with that
This is why you guys are the best. :D
We try :)