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
body img.gform_ajax_spinner { | |
display: none!important; | |
} |
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 | |
add_filter( 'gform_enable_field_label_visibility_settings', '__return_true' ); | |
?> |
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 |
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 | |
add_filter( 'gform_currencies', function( $currencies ) { | |
$currencies['EUR']['decimals'] = 3; | |
return $currencies; | |
} ); | |
?> |
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 | |
// Remove gf_hidden and gf_invisible classes from all fields | |
add_filter( 'gform_pre_render', 'remove_display_hidden_classes' ); | |
add_filter( 'gform_pre_validation', 'remove_display_hidden_classes' ); | |
add_filter( 'gform_pre_submission_filter', 'remove_display_hidden_classes' ); | |
add_filter( 'gform_admin_pre_render', 'remove_display_hidden_classes' ); | |
function remove_display_hidden_classes( $form ) { | |
foreach ( $form['fields'] as &$field ) { | |
$classes = explode( ' ', $field->cssClass ); // 'class1 class2' : array( 'class1', 'class2' ) |
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 | |
add_filter( 'gform_gf_field_create', 'convert_hidden_to_text', 10, 2 ); | |
function convert_hidden_to_text( $field, $properties ) { | |
if( $field->get_input_type() == 'hidden' ) { | |
$field = new GF_Field_Text( $properties ); | |
} | |
return $field; | |
} |
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 | |
// Non WordPress | |
$current_url = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; | |
// WordPress Site | |
global $wp; | |
$current_url = add_query_arg( $wp->query_string, '', home_url( $wp->request ) ); |
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
/* | |
hourglass.gif replaces the default AJAX spinner | |
http://loading.io/ <- Good place to find a new one | |
*/ | |
body img.gform_ajax_spinner { | |
position: fixed !important; |
OlderNewer