Hi,
I need some help with the product image gallery on mobile.
I just re-enabled the large product image, but now it looks way too big on mobile.
I’d like to hide the small thumbnail images below but still allow users to click/swipe to see the next image.
Ideally, the main image should be smaller so it doesn’t take up the whole screen and you can at least see some of the text underneath.
Is there an easy way to do this with CSS or settings in Enfold?
Thanks!
Hey ballindigital,
Thank you for the inquiry.
You can add this css code to hide the product gallery thumbnails and adjust the height of the main product image:
@media only screen and (max-width: 767px) {
/* Add your Mobile Styles here */
.single .product div.images div.thumbnails {
display: none;
}
.single .product div.images img {
width: auto;
height: auto;
max-height: 300px;
margin: 0 auto;
}
}
Best regards,
Ismael
Hi – thanks for this but it doesn’t seem to have worked? Could you check please?
Hi,
We’ve found some invalid CSS code in the Quick CSS field. Do you have a site backup? We’d like to correct the css, but we don’t want to risk breaking anything in the process.
Please create a site backup or restore point, and then we’ll adjust the css modifications.
Best regards,
Ismael
Hi – yes,
I have included access to our staging site here.
Hi,
Thank you for the update.
We added the modification in the live site.
Best regards,
Ismael
Beautiful! Thank you :)
Hi,
Thanks for the update, we’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.
Best regards,
Rikard