Solved

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

empiricalarby
Pathfinder
140 1 27

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 Expert
3398 450 503

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 or marking it as a solution.

For B2B solutions and custom pricing, check out B2B Solution & Custom Pricing |
For adding product labels/badges, visit Product Labels by BSS

BSS Commerce - Shopify Apps & Store Development Service Provider

Hire a Shopify expert | Shopify Plus Store Development

View solution in original post

Replies 2 (2)

BSS-Commerce
Shopify Expert
3398 450 503

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 or marking it as a solution.

For B2B solutions and custom pricing, check out B2B Solution & Custom Pricing |
For adding product labels/badges, visit Product Labels by BSS

BSS Commerce - Shopify Apps & Store Development Service Provider

Hire a Shopify expert | Shopify Plus Store Development

PageFly-Oliver
Globetrotter
717 142 134

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.