Shopify themes, liquid, logos, and UX
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
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
1. Go to Online Store -> Themes. Click the ... button on your theme and Click -> Edit Code.
2. Once the backend opens, search for the file component-card.css
3. Find (Ctrl + F) or use the search file to find : .card-wrapper
4. 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 </head> 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 </head>
<style>
.collection .product-card-wrapper {
border: 1px solid #000;
}
</style>
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024