Hi,
I am a beginner. Using a simple contact form in Ninja Form. For the required field, when there is no text, it given an error by putting a symbol, writing a message & changing the border of the box. I have managed to change the colour of the message & Symbol to match my website theme, but I haven’t managed to do the same with the box colour.
I am trying the code:
Yes. I did inspect. In the forum, I pasted the wrong hex code (the correct one is 1a9fb2), but on the site, I have pasted the right one. And I am using this:
.nf-error .ninja-forms-field {
border-color: #1a9fb2 !important;
transition: all .5s;
}
and it’s still showing a red border (default)
If I inspect & change there, it turns blue (the colour I want), yet pasting this in additional css in my wordpress theme hasn’t had any effect. The error message, * for required field & the error symbol (!) I have managed to change to blue (as seen on the screenshot), but not in the box border.
If you can change the color in the Inspector you know it works. You either are not using the correct classes in the CSS, have a specificity issue (!important should have fixed that), or have an incorrect cascade (CSS isn’t being applied in the correct order).
Using the Inspector you can tell what the problem is.
In short, there is nothing wrong with the CSS it is how it’s being applied that is the issue. You will have to post a link to the site so we can see what is going on.
bluehaveninv.com
I don’t know what’s the correct class or incorrect cascade - sorry I am a beginner.
I used the inspector - not sure what’s the problem.
WordPress is easy to use, right up until you have to make changes that require knowledge you do not have. But it is also a pay-for plugin and they have support so I’m guessing they would have helped you if you asked (I would hope).