Re: How to customize ''icon with text'' | Dawn theme

Solved

How to customize ''icon with text'' | Dawn theme

petitlaurierco
Explorer
83 1 21

Good morning!

 

I'd like to change two things with the ''icon with text'' block.

 

1. Change the font color to white (#ffffff)

2. Reduce the opacity of the colored background

 

Here's how it is right now :

 

petitlaurierco_0-1726933534596.png

 

 

 

Here's how I want it :

 

petitlaurierco_1-1726932365264.png

 

And here's the code I added to my base.css :

 

.product .icon-with-text {
background-color: #CCA397 !important;
padding-top: 20px !important;
padding-bottom: 4px !important;
padding-left: 10px !important;
}

Thank you!

Accepted Solutions (2)

exertweb
Shopify Partner
37 12 8

This is an accepted solution.

Hello @petitlaurierco 

You just update below code:

 

.product .icon-with-text {
    background-color: rgba(204,163,151,0.7) !important;
    padding-top: 20px !important;
    padding-bottom: 4px !important;
    padding-left: 10px !important;
    color: #fff;
}

.product .icon-with-text * { 
    color: inherit;
}

 

Amit

View solution in original post

exertweb
Shopify Partner
37 12 8

This is an accepted solution.

@petitlaurierco  Your current code uses rgba(204,163,151,0.7) for the background, If you want to reduce the opacity of the background, you need to change the last value (e.g., from 0.7 to 0.5) or adjust it to any value between 0 and 1.

Amit

View solution in original post

Replies 7 (7)

exertweb
Shopify Partner
37 12 8

This is an accepted solution.

Hello @petitlaurierco 

You just update below code:

 

.product .icon-with-text {
    background-color: rgba(204,163,151,0.7) !important;
    padding-top: 20px !important;
    padding-bottom: 4px !important;
    padding-left: 10px !important;
    color: #fff;
}

.product .icon-with-text * { 
    color: inherit;
}

 

Amit
petitlaurierco
Explorer
83 1 21

@exertweb it worked thank you! Do you have a recommendation on how to reduce the opacity of the colored box and leave the font normal? Thank you

exertweb
Shopify Partner
37 12 8

This is an accepted solution.

@petitlaurierco  Your current code uses rgba(204,163,151,0.7) for the background, If you want to reduce the opacity of the background, you need to change the last value (e.g., from 0.7 to 0.5) or adjust it to any value between 0 and 1.

Amit
petitlaurierco
Explorer
83 1 21

thank you! 🙂

Made4uo-Ribe
Shopify Partner
9607 2289 2844

Hi @petitlaurierco 

Dont add !important if  the code not overide. So when you cant search the code again you can add another code easily. 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

PageFly-Richard
Shopify Partner
4852 1091 1763

 

This is Richard from PageFly - Shopify Page Builder App

 

Hi @petitlaurierco  Please try this code:

Step 1: Online Stores > Themes > Edit code

Step 2: Choose file theme.liquid
Step 3: Add code above the tag </body>

 

<style>
.product .icon-with-text {
background-color: #CCA397 !important;
padding-top: 20px !important;
padding-bottom: 4px !important;
padding-left: 10px !important;
opacity: 0.8 !important;
color: white !important;
}
</style>

 

Hope my solution will help you resolve 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.

petitlaurierco
Explorer
83 1 21

@PageFly-Richard Thanks for your help. It unfortunately didn't work for the opacity part. I only need to reduce the colored background opacity, not the font. Thank you