Hi, how can I add borders to Shopify’s Dawn theme? The borders should be shown on collection pages.
Any help is appreciated!
I’ll attach an example below.
Hi @yoomzy
Would you mind to share your Store URL website? with password if its unpublish. Thanks!
Hey, thanks, and no problem! https://hjskr1-testing.myshopify.com/
password: testing
Go to Online Store → Themes. Click the … button on your theme and Click → Edit Code.
Once the backend opens, search for the file component-card.css
Find (Ctrl + F) or use the search file to find : .card-wrapper
Add the code: border: solid black 1px;
Like this
.card-wrapper {
color: inherit;
height: 100%;
position: relative;
text-decoration: none;
border: 1 px solid black; <-this is the line I added.
}
If this answers your question, do press that like and mark it as the accepted solution.
Hi @yoomzy
This is Richard from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Thanks for the info, check this one.
From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
Find the theme that you want to edit and click on “Actions” and then “Edit code”.
In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
ul#product-grid {
gap: 0px !important;
}
.collection li {
border: 1px solid rgba(0, 0, 0, 0.2);;
padding: 15px;
}
And Save.
Result:
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
I randomly found this, and it worked, thank you