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
.nf-field-element input::placeholder, | |
.nf-field-element input::-webkit-input-placeholder, | |
.nf-field-element input::-moz-placeholder, | |
.nf-field-element input:-ms-input-placeholder { | |
color: red; | |
font-size: 1.2em; | |
font-style: italic; | |
} |
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
.nf-form-cont .nf-form-title h3{ | |
color: #ff0000; | |
font-weight: bold; | |
text-align: left; | |
} |
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
/** | |
* Set minimum and maximum range for number field | |
* Apply the class "bfwpf-number-range-limit" to the field to enable. | |
* | |
* https://wpmonks.com/blog/how-to-min-max-range-for-number-fields-in-wpforms/ | |
*/ | |
function bfwpf_number_field_range_limit() { | |
?> | |
<script type="text/javascript"> |
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
/** | |
* Disable form fields to make read-only | |
* To apply, add CSS class 'wpmonks-readonly' (no quotes) to field in form builder | |
* | |
*/ | |
function wpmonks_disable_field() { | |
?> | |
<script type="text/javascript"> | |
jQuery(function($) { |
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
/* For labels */ | |
#wpforms-formID .wpforms-form .wpforms-field.wpforms-field-radio ul li label{ | |
font-size: 18px; | |
font-weight: 700; | |
line-height: 1.5; | |
} | |
/* For container */ | |
#wpforms-formID .wpforms-form .wpforms-field.wpforms-field-radio ul{ | |
background: #00ff00 !important; | |
border: 1px solid #bbefbb !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
body #gform_wrapper_FORMID .gfield_checkbox li input[type=checkbox] { | |
opacity: 0; | |
position: absolute; | |
} | |
body #gform_wrapper_FORMID .gfield_checkbox li input[type=checkbox] + label{ | |
position: relative; | |
overflow: hidden; | |
padding-left: 35px; | |
cursor: pointer; | |
display: inline-block; |
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 #gform_wrapper_FORMID .gfield_checkbox li input[type=checkbox]{ | |
width: 20px !important; | |
height: 20px; | |
} |
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 #nf-form-FORMID-cont.nf-form-cont{ | |
font-family:roboto; | |
background-color:#d0d0d0; | |
border:5px solid black; | |
border-radius:15px; | |
padding:20px; | |
margin:10px 20px; | |
} |
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
#gform_wrapper_1 .gform_fields .gfield input::-webkit-input-placeholder { | |
/* Chrome/Opera/Safari */ | |
color: pink; | |
} | |
#gform_wrapper_1 .gform_fields .gfield input::-moz-placeholder { | |
/* Firefox 19+ */ | |
color: pink; | |
} | |
#gform_wrapper_1 .gform_fields .gfield input:-ms-input-placeholder { | |
/* IE 10+ */ |
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
add_filter( 'gform_review_page_FORMID', 'wpmonks_add_review_page', 10, 3 ); | |
function wpmonks_add_review_page( $review_page, $form, $entry ) { | |
// Enable the review page | |
$review_page['is_enabled'] = true; | |
if ( $entry ) { | |
// Populate the review page | |
$review_page['content'] = GFCommon::replace_variables( '{all_fields}', $form, $entry ); | |
} |
NewerOlder