Re: Search bar text color

How can I change the search bar text color to black?

thefeller32
Tourist
4 0 3

I would like to change my font color in the text field of the search bar and email to black. Currently the text is white and blends in with white background. I have tried other codes but have not had any luck.

 

I have changed the color for now to yellow so the text can be seen but I want the text black.

 

https://theredroomllc.com/?_ab=0&_fd=0&_sc=1

Replies 6 (6)

HazilStudiosNYC
Shopify Partner
112 18 24

Hey!
In your "component-search.css" file add this code:

 

.search__input.field__input {
color: black !important;
}

.field__label {
color: black;
}

 

If this solved it, please leave a like and mark it as solution. 🙂

Happy selling,
Flo

Flo | Co-Founder and CEO; Hazil Studios
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- Want fast help? Check outour live chat

Made4uo-Ribe
Shopify Partner
6869 1637 2020

Hi @thefeller32 ,

Im not sure of which specific area you want to change. But this is what I understand. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.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:
  4. And Save.
input#Search-In-Modal {
    color:black;
}
svg.icon.icon-cart-empty {
    color: black;
}

Result:

Ribe_Dagandara_0-1687556543968.png

Ribe_Dagandara_1-1687556553414.png

I hope it help. 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
TrulyTeas
Not applicable
3 0 0

Hello,

 

I am also having the same issue. I tried following your steps above, but I cant seem to find your 3rd step (In the "Assets" folder, click on "base.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) 

 

I don't have a base.css under the Assets folder. Please see photo below. 

 

How can I change the writing from white to black? 

 

Website: www.TrulyTeas.com

Made4uo-Ribe
Shopify Partner
6869 1637 2020

Hi @TrulyTeas 

You have theme.scss.css, what you want to change? The icon or the text in the search? 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

RedTrollz
Visitor
1 0 0

How did you change it??

Made4uo-Ribe
Shopify Partner
6869 1637 2020

It can change by css code. 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.