Removing product image border in Dawn theme
As you can see that the image have a side border with gray accent, how to remove it?
Thanks
Users are trying to remove gray borders appearing around product images in Shopify’s Dawn theme.
Initial Solutions Attempted:
component-card.css file to set border to nonemain-product-section.css to remove color-foreground stylingIssues with CSS Approaches:
Working Solution (No Code Required):
Multiple users confirmed success by navigating through the theme customizer:
This built-in theme setting approach works reliably across Dawn 2.0+ versions without requiring CSS modifications or affecting other design elements. Confirmed effective as of May 2023.
Removing product image border in Dawn theme
As you can see that the image have a side border with gray accent, how to remove it?
Thanks
Would you mind sharing your store’s URL so we can provide the code for that? Thanks!
welcome to shopify community.
please share your store URL and if your store is password protected then please give password too.
Thank you .
Have you got an app that disables right-clicking? If yes this needs to be turned off so we can access the code and check this.
Cheers!
Yes, I’ve disabled it.
Thank you
Nevermind found it on the theme page. thanks!
Can you please advise on where you found it? I’ve been able to turn off image borders on colleciton pages but can’t seem to find it on the product page.
Same, just seen it on product page. can anyone help us out?
Thanks
Hi there,
Can you please share how you did this?
Would love some help here please!
Hi @vapormercury & @iconicmoments
Add the following code to your component-card.css file:
.card.card--product.card--outline {
border: none;
}
Should that help answer your query, we always appreciate liking & marking an as answer to let the community find quality solutions faster. Thanks!
Howdy - I cannot seem to get this code to work I’m afraid! The border still remains - can you please provide any further guidance?
@aiteallco
Kindly share your store URL and store password so,
I can solve it perfectly.
Thank You.
Thanks - aiteall.com.au and ahtroh
@aiteallco
Can you give me a screenshot so,
I can understand which image border you want to remove.
Thank You.
Hi - any luck with a potential solution on this front?
That code seems to be accessing the theme colors, which I found a way to cancel it out.
You can probably call that product image a different way but this still worked for me on dawn. I added it to the section-main-product.css
.product .grid__item {
--color-foreground: none!important;
}
Any other way to do it?
@BaileyPaserk solution actually works, yet it also eliminates the border of my drop down menues.
Go to Customize Theme → Theme Settings → Media → Border from 1px to 0px Thickness
@BaileyPaserk this solution works perfectly! thanks a lot
!