Jump to content

Split product block into two columns pictures + Description.

Recommended Posts

Posted (edited)

Please help. Version 7.1. Like to have two colums picture in product page. Two pictures side by side + Description.
I use Simple Format, Full Width and Stacked Design.
Hope to get pictures/photos like this:

 

2024-2-8-12.30.43.jpg

Edited by Belik
Posted

I think I found solution:
@media screen and (min-width: 768px) {
  .tweak-product-basic-item-gallery-design-stacked .ProductItem-gallery-slides-item
{
    margin-bottom: 5px;
    position: relative;
    height: 100%;
    overflow: hidden;
    width: 45% !important;
    float: left !important;
    margin-right: 5px;
  }
}

  • 6 months later...
Posted

If anyone is looking for a PDP with a product gallery in two columns (Simple Layout, Design: Stacked) here is an alternative using CSS Grid:

/************************************** 
Two columns in Product Gallery
on Simple PDP with Design:Stacked
Copyright SF Digital https://sf.digital
Use freely in your Custom CSS but  
do NOT re-publish.
**************************************/
@media screen and (min-width: 1025px) {
  /* Remove default psuedo element */
  .ProductItem-gallery-slides::before {
    content: none !important;
  }
  /* Use Grid to create 2 columns */
  .ProductItem-gallery-slides {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px; /* Gap between items */
  }
  .tweak-product-basic-item-gallery-design-stacked .ProductItem-gallery-slides-item {
    /* Remove default margin of 25px */
    margin: 0;
    box-sizing: border-box; 
  }  
}

image.thumb.png.08002c3a51c745363a6224b3e90ce718.png

image.thumb.png.3602ca4421901fe2d121db520982fbae.png

Did this help? Please give feedback by clicking an icon below  ⬇️

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.