Is it possible to change the input text color for text box entries system wide? A few of my plugins use black text and it is impossible to read based on the themes color for the text box area.
I was able to do it for contact form using this
.wpcf7 input[type=text],
.wpcf7 input[type=email],
.wpcf7 input[type=tel],
.wpcf7 textarea
{
color: #ffffff;
}
And then tried site wide using this but this didn’t work for anything.
input[type=text],
input[type=email],
input[type=tel],
textarea
{
color: #ffffff;
}
Edit: I ended up changing themes due to some other issues with my original theme
[ad_2]
It sounds like you’re trying to change the input text color for text box entries system-wide, right? Your first attempt targeted specific elements, but it didn’t work globally.
To change the input text color across your entire site, you might need to be more specific in your CSS selector. Try adding a higher specificity to your rule. For example, you could use:
body input[type=text], body input[type=email], body input[type=tel], body textarea { color: #ffffff; }
This ensures that your styling applies to inputs and textareas within the body of your HTML document, overriding any conflicting styles. Give that a shot and see if it works for you!
Let me know if you need any more help with it.
If the global approach didn’t work it means that there are more specific css values on your site (that’s why the first set worked – because they are more specific).
You should inspect the code to see what is overriding your values