Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion classes/models/fields/FrmFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,8 @@ public function get_container_class() {
* @return string
*/
protected function get_align_class_from_style_settings() {
$key = FrmStylesController::get_align_key_for_style_settings( FrmField::get_field_type( $this->field ) );
$field_type = FrmField::is_checkbox( $this->field ) ? 'checkbox' : 'radio';
$key = FrmStylesController::get_align_key_for_style_settings( $field_type );
$active_style = FrmStylesController::get_active_style( $this->field );

return $active_style->post_content[ $key ] ?? '';
Expand Down
Loading