Skip to content

Instantly share code, notes, and snippets.

@mathetos
Last active October 2, 2019 00:29
Show Gist options
  • Save mathetos/d6873adb64c4f93b91403447ece59fbd to your computer and use it in GitHub Desktop.
Save mathetos/d6873adb64c4f93b91403447ece59fbd to your computer and use it in GitHub Desktop.
Add .documents class to specific rows of a Caldera Form
// Add .documents class to divs of the Employee Onboarding Caldera Form
add_action( 'caldera_forms_grid_row_class', function($rowClass, $row, $config ){
//Change your field ID here
if('CF5d8ceba87e343' == $config[ 'form_id' ]){
if( $row==4 || $row==5 ) {
$rowClass .= ' documents';
}
}
return $rowClass;
}, 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment