text icon color change

Solved

text icon color change

lavly
Excursionist
43 0 4

ベルト付きワイドスラックス – Lavly
here is my shop
how to change this area's color

lavly_0-1740457382449.png

left to red right to brown

is it possible to change??

Accepted Solution (1)
Ahmad31
Shopify Partner
224 21 38

This is an accepted solution.

@lavly 

1. Online Store > themes > Edit code

2. Open theme.css or base.css (depending on your theme).

3. Add this CSS at the bottom:

 

 

 

 

  .icon-with-text__item:nth-child(1) {
    color: red;
  }

  .icon-with-text__item:nth-child(2) {
    color: saddlebrown;
  }
.icon-with-text{
background: none !important;
}

 

 

 

Ahmad31_0-1740473794522.png

 

Love my work? Buy Me A Coffee
Hire Me: Email me Or Chat on Whatsapp
If you found my solution helpful, please like and accept it. Your support is greatly appreciated!

View solution in original post

Replies 7 (7)

rajweb
Shopify Partner
662 57 128

Hey @lavly 

Yes, you can change the color of that area using CSS. Since I don't have direct access to the structure of your Shopify store, here’s a general way to apply the gradient effect:

Follow these steps:

1. Online Store > themes > Edit code

2. Open theme.css or base.css (depending on your theme).

3. Add this CSS at the bottom: css Copy Edit:

.icon-with-text {
    background: linear-gradient(to right, red, brown);
    padding: 10px; /* Adjust padding as needed */
    border-radius: 5px; /* Optional: adds rounded corners */
}

 

 

 

If I was able to help you, please don't forget to Like and mark it as the Solution!

Best Regard,
Rajat

 

-Need a Shopify developer?
https://rajatweb.dev/

Email: rajat.shopify@gmail.com
lavly
Excursionist
43 0 4

thanks
it worked, but not background
just text and icon!

rajweb
Shopify Partner
662 57 128

@lavly ,Try adding this to your CSS file or inside a <style> tag: 

 

.icon-with-text {
    background-color: #f8f9fa; /* Change this color as needed */
    padding: 10px;
    border-radius: 5px; /* Optional: Adds rounded corners */
}

.icon-with-text__item {
    background-color: #e0e0e0; /* Change this to your preferred background color */
    padding: 8px;
    border-radius: 4px; /* Optional: Adds rounded corners */
    display: flex;
    align-items: center;
    gap: 8px; /* Adjust spacing between icon and text */
}

 

If you want the background color to apply to the entire <ul> rather than each <li>, use .icon-with-text instead. Let me know if you need further adjustments!

Thanks

-Need a Shopify developer?
https://rajatweb.dev/

Email: rajat.shopify@gmail.com

Ahmad31
Shopify Partner
224 21 38

Hi @lavly, You want like this ?:

Ahmad31_0-1740471498249.png

 

Love my work? Buy Me A Coffee
Hire Me: Email me Or Chat on Whatsapp
If you found my solution helpful, please like and accept it. Your support is greatly appreciated!
lavly
Excursionist
43 0 4

yes !
and text color white plz

Ahmad31
Shopify Partner
224 21 38

This is an accepted solution.

@lavly 

1. Online Store > themes > Edit code

2. Open theme.css or base.css (depending on your theme).

3. Add this CSS at the bottom:

 

 

 

 

  .icon-with-text__item:nth-child(1) {
    color: red;
  }

  .icon-with-text__item:nth-child(2) {
    color: saddlebrown;
  }
.icon-with-text{
background: none !important;
}

 

 

 

Ahmad31_0-1740473794522.png

 

Love my work? Buy Me A Coffee
Hire Me: Email me Or Chat on Whatsapp
If you found my solution helpful, please like and accept it. Your support is greatly appreciated!

LizHoang
Shopify Partner
1251 158 196

Hi @lavly 

You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file theme.css and add this code at the end of the file

 

 

ul.icon-with-text.icon-with-text--horizontal.list-unstyled li:last-child {
    color: brown !important;
}

li.icon-with-text__item {
    color: red;
}

 

 

Result: 

LizHoang_0-1740473328682.png

 

 

Best,

Liz

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program