Created
March 15, 2017 15:45
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
Change the classes assigned to notices in Caldera Forms | |
IMPORTANT: These are arrays of individual classes at this point. array( 'hi', 'roy ) will become class="hi roy" | |
*/ | |
add_filter( 'caldera_forms_render_note_classes', function( $classes ){ | |
//change error class to alert-danger for Bootstrap 4 | |
$classes[ 'error' ] = array( 'alert', 'alert-danger' ); | |
//add an extra class to success | |
$classes[ 'success'][] = 'caldera-victory'; | |
return $classes; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment