Shopify themes, liquid, logos, and UX
Hi,
How do I add additional image blocks to the Collage section in Crave?
URL: https://ol5funuifcwog2co-74242359616.shopifypreview.com (Pass: dannyhoo)
Solved! Go to the solution
This is an accepted solution.
Hi @dan_hoo
Please follow these steps:
Step 1: At Shopify Admin, select Online Store -> Themes -> Edit Code
Step 2: Find and open the file collage.liquid
Step 3: Press Ctrl + F, then enter this word in the search bar, click Next.
Step 4: At the line just found, you can adjust the number of image blocks in the Collage section (Shopify's default is 3). Here we will edit to 5 image blocks:
Here is the final result:
We hope this can help you.
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
This is an accepted solution.
Hi @dan_hoo
Please follow these steps:
Step 1: At Shopify Admin, select Online Store -> Themes -> Edit Code
Step 2: Find and open the file collage.liquid
Step 3: Press Ctrl + F, then enter this word in the search bar, click Next.
Step 4: At the line just found, you can adjust the number of image blocks in the Collage section (Shopify's default is 3). Here we will edit to 5 image blocks:
Here is the final result:
We hope this can help you.
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
Hello,
is it possible to change the layout in collage like this?
I added two additional items, but the layout doesnt look good at this moment.
in order to fix that, you need to update the collage.css file.
replace the 2 @media screen sections with this:
@media screen and (min-width: 750px) {
.collage {
display: grid;
grid-template-columns: 2fr 1fr 1fr; /* Larger column for the first image, smaller columns for the rest */
grid-template-rows: repeat(2, auto); /* Two rows for right-side smaller images */
grid-gap: var(--grid-desktop-horizontal-spacing);
}
/* Large image on the left */
.collage__item:nth-child(1) {
grid-column: 1 / 2; /* Span the first column */
grid-row: 1 / 3; /* Span two rows */
}
/* Small images on the right */
.collage__item:nth-child(2) {
grid-column: 2 / 3;
grid-row: 1;
}
.collage__item:nth-child(3) {
grid-column: 3 / 4;
grid-row: 1;
}
.collage__item:nth-child(4) {
grid-column: 2 / 3;
grid-row: 2;
}
.collage__item:nth-child(5) {
grid-column: 3 / 4;
grid-row: 2;
}
}
@media screen and (max-width: 749px) {
.collage--mobile {
display: grid;
grid-template-columns: 1fr; /* Single column layout for smaller screens */
grid-row-gap: var(--grid-mobile-vertical-spacing);
}
.collage__item {
grid-column: span 1;
}
}
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024