I’m using the Avenue theme.
Currently my blogs populate in a column format; each entry stacked on the previous one (first screenshot).
I am hoping to find a simple solution (CSS, liquid code change is fine) for them to populate in rows of 3 across (grid format) (second screenshot).
Help!? TIA!
Blogs landing page: https://wagan.com/blogs/news
Current:
Want:
Hi, please try this code
@media screen and (min-width: 1080px) {
#shopify-section-blog-template .container:nth-of-type(3) {
display: flex;
flex-wrap: wrap;
}
#shopify-section-blog-template .container:nth-of-type(3) > div:not(:last-child) {
width: 33%;
}
}
Where does that get inserted at?
Thank you for the reply!!
@media screen and (min-width: 1080px) {
#shopify-section-blog-template .container:nth-of-type(3) {
display: flex;
flex-wrap: wrap;
}
#shopify-section-blog-template .container:nth-of-type(3) > div:not(:last-child) {
width: 33%;
}
}
You need to add this code at the end of file theme.scss that is stored inside yout Theme assets folder.
Remember to do a backup of the theme first by following the guide Duplicating themes