Have your say in Community Polls: What was/is your greatest motivation to start your own business?

How to add a border to product image on shop page?

Solved

How to add a border to product image on shop page?

empiricalarby
Trailblazer
230 1 52

Notice the border on the product page: https://empiricalwater.com/products/empiricalwater

 

It's a very thin border, and it does the job. However, notice the lack of border on the shop page: https://empiricalwater.com/pages/shop

 

I'd like to add the exact same border there, as appears on the product page.

 

How to do this? Thank you

Accepted Solution (1)

BSS-Commerce
Shopify Partner
3477 463 547

This is an accepted solution.

Hi @empiricalarby ,

 

Please add this css to your css file:

.card--standard .card__inner {
  border: 1px solid rgba(0,0,0, 0.05) !important;
}

Result:

view - 2023-11-23T102542.284.png

Hope it helps @empiricalarby 

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

View solution in original post

Replies 2 (2)

BSS-Commerce
Shopify Partner
3477 463 547

This is an accepted solution.

Hi @empiricalarby ,

 

Please add this css to your css file:

.card--standard .card__inner {
  border: 1px solid rgba(0,0,0, 0.05) !important;
}

Result:

view - 2023-11-23T102542.284.png

Hope it helps @empiricalarby 

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

PageFly-Oliver
Shopify Partner
878 190 184

Hi @empiricalarby ,

 

You can try this code by following these steps:

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.liquid

Step 3: Paste the below code at the bottom of the file -> Save

 

<style>
#MainContent .card__inner {
  border: 1px solid rgba(0,0,0, 0.05) ;
}
</style>

 

 

Hope my solution works perfectly for you!

Best regards,

Oliver | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.