Happening now | Office Hours: Customizing Your Theme With Moeed | Ask your questions now!

Blog Post Card image background

Solved

Blog Post Card image background

ff_123
Tourist
9 1 0

I've got png images with transparent backgrounds as my block post featured image, but they seem to have a grey / slightly opaque background. Is there any css that I can add to remove the background of the image?

 

Screenshot of page attached

 

Thanks

Accepted Solution (1)
AnneLuo
Shopify Partner
1352 237 276

This is an accepted solution.

You can try this code by following these steps:
Step 1: Go to the online store ->Theme ->Edit Code.
Step 2: Find the theme.liquid file and add the following code before the </head> tag

<style>
.card__media .media {
  background-color: unset !important;
}
</style>

Result:

AnneLuo_0-1749174880152.png


Hope this helps! If yes then Please don't forget hit Like and Mark it as solution!

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me   

Buy Me A Coffee

View solution in original post

Replies 6 (6)

TheScriptFlow
Shopify Partner
829 61 105

Hey @ff_123,

Welcome to the Shopify community. Yes, this is absolutely possible via CSS. Would you like to share the Store URL and password if applicable, so that based on the classes used in your store, I can provide you solution code.

Looking forward to hearing back from you.

Thanks

- Need a Shopify Specialist? Chat on WhatsApp +923036471248 Or Email at info@thescriptflow.com

- Boost Your Sales with Affiliate Marketing - UpPromote: Affiliate & Referral


- If my solution was helpful, mark it as a solution and hit the like button!

ff_123
Tourist
9 1 0

I've temporarily disabled the password - the store URL is https://2dxxpj-15.myshopify.com/blogs/recipes

Thanks

AnneLuo
Shopify Partner
1352 237 276

This is an accepted solution.

You can try this code by following these steps:
Step 1: Go to the online store ->Theme ->Edit Code.
Step 2: Find the theme.liquid file and add the following code before the </head> tag

<style>
.card__media .media {
  background-color: unset !important;
}
</style>

Result:

AnneLuo_0-1749174880152.png


Hope this helps! If yes then Please don't forget hit Like and Mark it as solution!

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me   

Buy Me A Coffee

ff_123
Tourist
9 1 0

Thanks @AnneLuo, that worked

ff_123
Tourist
9 1 0

@AnneLuosimilar to my initial questions, if I wanted to remove the background of the tiles on a multi-column list, how would I do that? Don't suppose there is a crib sheet or extension anywhere that can show me the names of the different elements, so I can use the same code as you gave me above, but change it from the blog to the multi-column list items?

Thanks for your help.

AnneLuo
Shopify Partner
1352 237 276

Hi, @ff_123 

Can you please share the store URL so I can better support you?

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me   

Buy Me A Coffee