Is there a way to change colour of the input for required fields?
For some reason, some people don't seem to see the asterisk, so I figured making the actual input a pastelly reddish colour if it is required.
Is there a way to change colour of the input for required fields?
For some reason, some people don't seem to see the asterisk, so I figured making the actual input a pastelly reddish colour if it is required.
You can do this with a minor customization. You would need to detect the list items that contain the "gfield_required" span and then use jQuery to add another class to that. Once you've added the class, you can use CSS inheritance to add additional styles to the inputs.
Here's the code: http://pastie.org/1934701
You would add that to your header.php file just before the </ head> tag. That's also assuming that your theme has already loaded the jQuery library.
Here's a screenshot of my test: http://grab.by/aboU
Hope that helps out.
Thanks, that's great. I'll have a play.