Skip to content

Instantly share code, notes, and snippets.

@pkostadinov-2create
Created July 13, 2015 11:06
Show Gist options
  • Save pkostadinov-2create/8e9f3d6804d9f10f6aca to your computer and use it in GitHub Desktop.
Save pkostadinov-2create/8e9f3d6804d9f10f6aca to your computer and use it in GitHub Desktop.
<?php
add_action('gform_field_content', 'crb_gform_second_column', 10, 5);
function crb_gform_second_column($field_content, $field, $value, $zero, $form_id) {
# The condition might be different depending on the choosen method
if($field->cssClass == 'column_end' || $field->type=='section') {
$field_content .= "</ul><ul id='gform_fields_$form_id' class='gform_fields right'>";
}
return $field_content;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment