Jump to content

[Share] Change product gallery from Stacked to Slideshow on mobile

Recommended Posts

To change product gallery from Stacked to Slideshow on Mobile, you can follow these.

#1. First, edit a Product > Edit Design

image.png.c4dc4e51082b066b5231b12977b4fa05.png

Next, click Edit Section

image.png.5e98516195bf39719522615f8bf59536.png

#2. Choose Slideshow (we will use code to change it to Stacked on Desktop)

image.png.07a6f6540cbbac1fd8340054e6a57f57.png

#3. Next, use this code to Custom CSS to change Slideshow to Stacked on Desktop.

/* Stacked Product */
@media screen and (min-width:768px) {
  .ProductItem-gallery-slides-item {
    position: static !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: 20px;
  }
  .ProductItem-gallery-slides:before {
    padding: 0 !important;
  }
  .ProductItem-gallery-scroll {
    display: none !important;
  }
  .ProductItem-gallery-carousel-controls {
	  display: none !important;
  }}

image.png.06ae425020033731272e45722ee030cd.png

#4. If you want to do this for a specific product only, you can edit Additional Info > Add a Code Block

image.png.b72be7f3c684d6018ea175bc199db356.png

Click plus icon to add a Code Block

image.png.b63af520dae608bde5bc635cfd0c688c.png

image.thumb.png.68f5aa0abc9883aac7b001b546ae2ec8.png

and paste this code into Code Block

image.thumb.png.5848b089f73b9a0341d12e29d5f3684a.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • Replies 0
  • Views 559
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.