Shopify themes, liquid, logos, and UX
On mobile the featured collection images have a white border around the product image. How can I remove these?
https://q478a5ljt5g7ge1x-85805793561.shopifypreview.com/
Solved! Go to the solution
This is an accepted solution.
Hey @nmn22601,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
.card--standard .card__inner {
border: none !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
This is an accepted solution.
Hey @nmn22601,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
.card--standard .card__inner {
border: none !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
Thank you that worked. I was adding that code to the base.css. How did you know to use the theme.liquid?
Hello @nmn22601 ,
I understand you are looking to remove the featured product image border.
You can remove the border with the help of following steps -:
1. Go to Online Store -> Themes-> Edit Code https://prnt.sc/AD-DQ6ECUvcp
2. Open the theme.liquid file and paste the code at the bottom of the file before </body> tag
<style>
.card__inner.color-background-1.gradient.ratio {
border: none !important;
}
</style>
Output will be like this =>
I hope the solution helps you.
Please share if you have any query.
Thank you.
@nmn22601@nmn22601, do this to fix it in 20 seconds:
1. In your Shopify Admin go to: online store > themes > actions > edit code
2. Find Asset > base.css and paste this at the bottom of the file:
.card--standard .card__inner {
border-color: transparent !important;
}
If it helps you please click on the "like" button and mark this answer as a solution!
Thank you.
Kind regards,
Diego
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025