Js.search.title how to change color?

Hi everyone, I checked everywhere via F12 but I couldn’t find it.
How can I change the text color?

Ekran görüntüsü 2024-05-09 224719

When searching, the text is white. I want to change the color before searching.

1 Like

That would be the placeholder text for the input. You can target that using ::placeholder pseudo element in your CSS.

1 Like

Thank you @keegan :pray:

::placeholder {
  color: #hexcode;
}

Worked :slight_smile:

1 Like

I’m glad you got it working! Just a heads up, the code snippet you provided actually targets all input fields on the entire site and updates their placeholder text color.

Perhaps that might not be your intention and thus it may be good to add some specificity to your selector.

For example, if you are aiming to target the search input in the search menu only, you can do something like this:

.search-menu #search-term::placeholder {
  color: #hexcode;
}
4 Likes

Yes, I first tried it as you wrote, but I wrote it differently. When I got an error, I just wrote the placeholder code and ran it. Thank you for your interest. :pray:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.