Shopify themes, liquid, logos, and UX
Hi
Does any one know if it's possible to make the product image stay in a square on the product page instead of constantly bouncing around depending on the image size? We also wanted to hide the carousel of images underneath. Are these possible?
Thanks in advance.
Hi LWSOnline,
.product-single__photo img {
width: 100%;
height: auto;
padding-top: 100%; /* This creates a square container */
}
.product-single__thumbnails {
display: none;
}
This CSS will make the product image stay in a square and hide the image carousel.
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Hi
Sorry for the delay. I've just tried this but am getting an error when I try to save. Do I just paste it anywhere within the Product.json? I am getting the following error:
"Invalid JSON: unexpected token"
Thanks for your help.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024