Re: How do I add additional Image blocks to the Collage section in Crave?

Solved

How do I add additional Image blocks to the Collage section in Crave?

dan_hoo
Shopify Partner
20 0 5

Hi,

 

How do I add additional image blocks to the Collage section in Crave?

 

URL: https://ol5funuifcwog2co-74242359616.shopifypreview.com (Pass: dannyhoo)

Accepted Solution (1)

BSS-Commerce
Shopify Partner
3477 463 549

This is an accepted solution.

Hi @dan_hoo

 

Please follow these steps:

 

Step 1: At Shopify Admin, select Online Store -> Themes -> Edit Code

view (4).png

Step 2: Find and open the file collage.liquid

view (5).png

Step 3: Press Ctrl + F, then enter this word in the search bar, click Next.

view (6).png

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:

 

view (7).png

 

Here is the final result:

 

view (8).png

 

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


BSS Commerce - Full-service eCommerce Agency

View solution in original post

Replies 3 (3)

BSS-Commerce
Shopify Partner
3477 463 549

This is an accepted solution.

Hi @dan_hoo

 

Please follow these steps:

 

Step 1: At Shopify Admin, select Online Store -> Themes -> Edit Code

view (4).png

Step 2: Find and open the file collage.liquid

view (5).png

Step 3: Press Ctrl + F, then enter this word in the search bar, click Next.

view (6).png

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:

 

view (7).png

 

Here is the final result:

 

view (8).png

 

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


BSS Commerce - Full-service eCommerce Agency
Lucie11
Visitor
1 0 1

Hello, 

 

is it possible to change the layout in collage like this?

 

Lucie11_0-1731749350829.png

I added two additional items, but the layout doesnt look good at this moment.

Lucie11_1-1731749452389.png

 

kjjd84
Shopify Partner
1 0 0

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;
  }
}