DAWN: Showing only first image on product page media

Hello!

I would like to show only the first image on the product page while hiding all the thumbnails on both mobile and desktop site.

As I have already move my image stack underneath the product description, in order to make the product page simpler and I would like to only show 1 image on the top unless variants is chosen (showing corresponding variant image instead when clicked).

Your help is very much appreciated! Thanks in advance.

Hey there,

There are two ways to do this. One on the simpler side with CSS and one where you actually change the product page code.

For this making the CSS change should be enough and you can easily revert back to a gallery if you want in the future.

How to make the change
In the CSS section of the Product Information, add this code

.thumbnail-list {
  display: none;
}

.slider__slide,
.slider-buttons {
  display: none;
}

.slider__slide.is-active {
  display: flex;
}

This will hide all images but the first / main one.
On mobile, it will also hide the slide-buttons (next, previous).

Let me know if this did the trick :slightly_smiling_face:

Best,
Flo

@GRGR

Please add the following CSS code to your assets/base.css bottom of the file.

.thumbnail-list {
  display: none !important;
}

.slider__slide,
.slider-buttons {
  display: none !important;
}

.slider__slide.is-active {
  display: flex !important;
}

Thanks!

This works like wonder! Thank you so much!

@GRGR

Thanks! welcome again!

@HazilStudiosNYC

I checked on the website again and see that all images are hide on desktop while on mobile it’s fine.

Is there anything I can do?

Your help is very much appreciated!

@GRGR

Please store the URL & a screenshot of what you want!

Thanks!

Thanks for your quick reply!

https://girigirihk.com/products/sling-back-heels?

It works on mobile to show only one image in the slider position

When switched to desktop, no image is shown though.
I would like to show only 1 image as how mobile works with the code you provided.

Thanks in advance!

@GRGR

Please Remove the previously provided code!

Thanks!

@HazilStudiosNYC @dmwwebartisan

Any ideas what updates should I make in terms to achieve the results?

@GRGR

This is code customization work Please hire Shopify Expert who can help you!

Thanks!