Skip to content

Instantly share code, notes, and snippets.

@billerickson
Last active December 1, 2017 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/9e15135389d0e3d231736e088d9da2af to your computer and use it in GitHub Desktop.
Save billerickson/9e15135389d0e3d231736e088d9da2af to your computer and use it in GitHub Desktop.
.wpforms-container#wpforms-57 {
.wpforms-field-container {
@include make-row;
.wpforms-field-container-left,
.wpforms-field-container-right {
@include make-sm-column( 12 );
@include make-md-column( 6 );
}
}
}
<?php
/**
* Contact Form Two Column open
*
*/
function ea_contact_form_two_column_open( $field, $form_data ) {
if( 57 != $form_data[ 'id' ] )
return;
if( 1 == $field[ 'id' ] )
echo '<div class="wpforms-field-container-left">';
if( 6 == $field[ 'id' ] )
echo '</div><div class="wpforms-field-container-right">';
}
add_action( 'wpforms_display_field_before', 'ea_contact_form_two_column_open', 1, 2 );
/**
* Contact Form Two Column Close
*
*/
function ea_contact_form_two_column_close( $field, $form_data ) {
if( 57 != $form_data[ 'id' ] )
return;
if( 6 == $field[ 'id' ] )
echo '</div>';
}
add_action( 'wpforms_display_field_after', 'ea_contact_form_two_column_close', 99, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment