Hello.
We have some custom elements built following the guide provided (https://theme.co/apex/forum/t/cornerstone-content-builder-custom-elements/217).
Our element controls are ‘multi-choose’ and we’ve also tested them as ‘choose’
The ‘columns’ setting is not being honored. It will always output a number of columns equal to the number of options in the ‘choices’;
To test, we edited the Classic Recent Posts element’s orientation controls. We added a third option and maintained the column setting as ‘2’. The output was 3 columns.
.../themes/pro/cornerstone/includes/elements/classic/_alternate/recent-posts.php:75
$this->addControl( 'orientation', 'choose', __( 'Orientation!', 'cornerstone' ), __( 'Select the orientation or your Recent Posts.', 'cornerstone' ), 'horizontal', array( 'columns' => '2', 'choices' => array( array( 'value' => 'horizontal', 'label' => __( 'Horizontal', 'cornerstone' ), 'icon' => fa_entity( 'arrows-h' ) ), array( 'value' => 'vertical', 'label' => __( 'Vertical', 'cornerstone' ), 'icon' => fa_entity( 'arrows-v' ) ), array( 'value' => 'oblong', 'label' => __( 'oblong', 'cornerstone' ), 'icon' => fa_entity( 'flask' ) ) ) ) );
Is this a known issue? Is there a fix?
Thank you