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

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
139 23 26

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 - Shopify Mentorship
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
-
Want fast help? Chat with me

Made4uo-Ribe
Shopify Partner
9615 2290 2851

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 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 ⚙️.
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
9615 2290 2851

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 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 ⚙️.

RedTrollz
Visitor
1 0 0

How did you change it??

Made4uo-Ribe
Shopify Partner
9615 2290 2851

It can change by css code. 

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 ⚙️.