Shopify themes, liquid, logos, and UX
I'm sure this is a simple line of code but I can't figure it out on my own or find the answer already.
My product images have transparent backgrounds but when included on a collections page, the background turns grey or an off-white again. How do I make the background on these images transparent all around?
thephoenixec.com
ahglow
Solved! Go to the solution
This is an accepted solution.
@shadow3@shadow3, 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:
[id] .collection .card__inner {
background: transparent !important;
}
This will ensure the code is applied exclusively to collection items and not elsewhere.
If it helps you please click on the "like" button and mark this answer as a solution!
Thank you.
Kind regards,
Diego
Hi @shadow3
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:
.card__inner.color-background-2.gradient.ratio {
background: transparent !important;
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
This is an accepted solution.
@shadow3@shadow3, 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:
[id] .collection .card__inner {
background: transparent !important;
}
This will ensure the code is applied exclusively to collection items and not elsewhere.
If it helps you please click on the "like" button and mark this answer as a solution!
Thank you.
Kind regards,
Diego
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024