Hello-
Any tips on making the main blog page images square instead of 2:3
Also id like to have them all be on a grid
3 blog posts across - all square images
Thanks!
Hello-
Any tips on making the main blog page images square instead of 2:3
Also id like to have them all be on a grid
3 blog posts across - all square images
Thanks!
Hi @ACV ,
To change you follow the instruction:
.article-card__image-wrapper .article-card__image {
padding-bottom: 100% !important;
}
@media (min-width: 1200px) {
.blog-articles {
grid-template-columns: 1fr 1fr 1fr;
}
.blog-articles > *:first-child,
.blog-articles > *:nth-child(4),
.blog-articles > *:last-child:nth-child(2),
.blog-articles > *:last-child:nth-child(5) {
grid-column: span 1;
}
}
I hope it would help you.
Thank you for your help. This worked for the grid aspect, but curious how can I make each blog post a 1:1 image instead of 2:3 image as well.
Hi @ACV
You try paste below code at the bottom of the file base.css:
.article-card__image-wrapper .article-card__image {
padding-bottom: 100% !important;
}
@AvadaCommerce Thank you!
Hi there, I used this code you recommended and it worked great on my main blog page to do 4 posts across (see example page here: https://madesafetest.myshopify.com/blogs/news) The problem is that now the featured images are not showing up on mobile or tablet. They show up fine on laptop. Can you please advise how to modify this code so that the featured blog images still show up on mobile and tablets? Thank you in advance for your help!
I used this, and it did make the images square, however it now covers the blog title and excerpt. Can you advise?