Shopify themes, liquid, logos, and UX
Hi everyone I have tried so many different codes and for some reason can't get my images to have borders and if they do it only goes around 2 sides of the image left and bottom. I am using the minimal theme and my shop is sweetstylesboutique.com thanks so much.
Solved! Go to the solution
This is an accepted solution.
Hey @sweetstylesbtq,
Try to add the following code at the end of your assets/timber.scss.liquid file.
.product__img-wrapper.supports-js .product__img {
border: 1px solid red;
}
For now, I added a red color if you see in above code. You can change the color code as per your need.
Thanks!
This is an accepted solution.
Hey @sweetstylesbtq,
For the product page. Please add the following code at the bottom of your assets/timber.scss.liquid file.
.product-single__photos a, .product-single__photos img, .product-single__thumbnails a, .product-single__thumbnails img{
border: 1px solid red;
}
Hope this will work.
Thanks!
This is an accepted solution.
Hey @sweetstylesbtq,
Try to add the following code at the end of your assets/timber.scss.liquid file.
.product__img-wrapper.supports-js .product__img {
border: 1px solid red;
}
For now, I added a red color if you see in above code. You can change the color code as per your need.
Thanks!
That worked but now its only on three sides of the image on the main page maybe a spacing issue because the other ones worked !
Hey @sweetstylesbtq,
My side looking like this
Well that is super strange mine is missing the bottom well as long as you can see it that's great thank you how do i also add it to my images on my product page ?
This is an accepted solution.
Hey @sweetstylesbtq,
For the product page. Please add the following code at the bottom of your assets/timber.scss.liquid file.
.product-single__photos a, .product-single__photos img, .product-single__thumbnails a, .product-single__thumbnails img{
border: 1px solid red;
}
Hope this will work.
Thanks!
eeeek omg your amazing thank you so much I swear I looked all over tried like a million different codes
Hi, your code worked like a charm but there is another thing.
Whenever I hover over the image, the border disappears.
What to do? Please help
Please share Your webshop URL & Password.
Thanks!
I have the same question, but we use the Theme Prestige
We also would like to add a thin grey border to the products that shows when you hoover over the products.
Help please 🙂
Please try to add the following code at the bottom of your assets/timber.scss.liquid file.
.product-single__image-wrapper {border: 1px solid #575b63;}
Let me know if this works,
Thanks!
Please don’t tag me someone else has added replies not me thank you so much
User | RANK |
---|---|
62 | |
52 | |
46 | |
39 | |
37 |
Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023Summary of EventsBeginning in January of 2023, some merchants reported seeing a large amo...
By Trevor May 15, 2023With 2-Factor Authentication being required to use Shopify Payments, we’re here to help yo...
By Imogen Apr 26, 2023