Changing the Name Attribute of a Hidden Field

/** * Custom function to change the name attribute of hidden fields in any form. * * @link https://wpforms.com/developers/how-to-change-the-name-attribute-of-a-hidden-field/ */ function wpf_field_properties_hidden( $properties, $field, $form_data ) { // Optional, you can limit to specific forms. Below, we restrict output to…Continue reading

Customizing Checkbox and Radio Fields to Look Like Buttons (All Forms)

.wpforms-container input[type=radio], .wpforms-container input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;} .wpforms-container input[type=radio] + label, .wpforms-container input[type=checkbox] + label { padding: 5px 10px !important; background-color:…Continue reading

Customizing Checkbox and Radio Fields to Look Like Buttons (Specific Forms)

.wpforms-container form#wpforms-form-1000 input[type=radio], .wpforms-container form#wpforms-form-1000 input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } .wpforms-container form#wpforms-form-1000 input[type=radio] + label, .wpforms-container form#wpforms-form-1000 input[type=checkbox] + label {…Continue reading