diff --git a/inc/roots-cleanup.php b/inc/roots-cleanup.php index ccd19e0..7025d26 100644 --- a/inc/roots-cleanup.php +++ b/inc/roots-cleanup.php @@ -638,32 +638,3 @@ function roots_widget_first_last_classes($params) { } add_filter('dynamic_sidebar_params', 'roots_widget_first_last_classes'); - -// apply Bootstrap markup/classes to Gravity Forms (in progress) -if (class_exists('RGForms')) { - update_option('rg_gforms_disable_css', 1); - - // error message class - function roots_gform_validation_message($message, $form) { - $message = '
'; - $message .= '×'; - $message .= 'There was a problem with your submission. Errors have been highlighted below.'; - $message .= '
'; - return $message; - } - add_filter('gform_validation_message', 'roots_gform_validation_message', 10, 2); - - // field class - function roots_gform_field_css_class($classes, $field, $form) { - $classes .= " control-group"; - return $classes; - } - add_action('gform_field_css_class', 'roots_gform_field_css_class', 10, 3); - - // button class - function roots_gform_submit_button($button, $form) { - return ""; - } - add_filter('gform_submit_button', 'roots_gform_submit_button', 10, 2); - -}