From 084e3e6a969db7805f6ccbf1158e212f9631122a Mon Sep 17 00:00:00 2001 From: Nico Mollet Date: Wed, 26 Jul 2017 15:17:11 +0200 Subject: [PATCH] Gravity Forms: fix submit button with conditions --- inc/plugins/gravityforms.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/inc/plugins/gravityforms.php b/inc/plugins/gravityforms.php index dc81d93..447ea94 100644 --- a/inc/plugins/gravityforms.php +++ b/inc/plugins/gravityforms.php @@ -56,13 +56,11 @@ function stormbringer_gform_field_css_class($classes, $field, $form) function stormbringer_gform_submit_button($button, $form) { - return ' -
- -
- '; + //$button = str_replace('', '>', $button); + $button = '
'.$button.'
'; + return $button; } add_filter('gform_submit_button', 'stormbringer_gform_submit_button', 10, 2);