Change Background Color of Password Box

I am trying to figure out how to change the background color of a password box. I’ve tried some CSS approaches I’ve seen on the forum, but they didn’t work (or I misunderstood how to apply them.)
For example, see: https://www.readyformedia.com/password_demo/
A hairline rule around a white box would be fine, as would a light gray background – anything but the black that appears now.
The font color would have to contrast with the background color – black or red.
Thanks in advance for any help!

Hello @Auerbach

Thanks for writing to us

Please add this code in Appearance > Theme Options > CSS to change the background colour of the password field

.single-post .post-password-form input[type="password"]{
background: #ccc;
border: 1px solid #fff;
color: #000;
}

You can change the colour values per your design.

The purpose of providing the custom CSS to show you how to add CSS code to your site. Writing custom CSS is outside the scope of our theme support. If you need more customization, you need to learn CSS and learn how to use the browser’s element inspector.

Thanks

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