Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jevgen/d4cd041cd2508aaf4cfc to your computer and use it in GitHub Desktop.
Save jevgen/d4cd041cd2508aaf4cfc to your computer and use it in GitHub Desktop.
Styling Gravity Forms Error Messages
/* Gravity forms error handling - February 5, 2014 */
/* ############################################### */
/* Make the error stand out */
.gfield_error{
background-color: white;
color:#b94a48;
}
/* Prepend the error message to the missing but required field */
.gfield_error:before {
font-weight: bold;
content: "Sorry, this field is required: ";
color: #b94a48;
padding-left: 5px;
}
/* Hide the error message since we're displaying it above */
.validation_error, .validation_message {
display:none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment