Core Extensions Bundle refund.
- This topic has 6 replies, 3 voices, and was last updated 7 years, 9 months ago by
Anh Tran.
-
AuthorPosts
-
July 17, 2017 at 11:43 PM #6342
uththamag
ParticipantHi,
Recetnly I bought Core Extensions Bundle, unfortunately, MB Columns with meta box conditional logic add-ons are not working properly as I expected. I’m asking you for a refund.
Thank you.
July 18, 2017 at 2:28 AM #6346Tan Nguyen
ParticipantDear uththamag,
Sorry to make you feel confusing, I've checked both Columns and Conditional Logic and see it works as your requested. Please see my example and let me know if you have further problems.
July 18, 2017 at 9:16 AM #6348uththamag
ParticipantHi,
I mean like this.
array( 'name' => false, 'id' => "{$prefix}sect_editor", 'type' => 'wysiwyg', 'columns' => 6, 'raw' => true, 'options' => array( 'textarea_rows' => 15, 'wpautop' => false, ), ), array( 'name' => false, 'id' => "{$prefix}sect_editor2", 'visible' => ['uk_sect_layout', 'layout2'], 'type' => 'wysiwyg', 'columns' => 6, 'raw' => true, 'options' => array( 'textarea_rows' => 15, 'wpautop' => false, ), ), // Image Columns array( 'name' => esc_html__( 'Section Images', 'codice' ), 'id' => "{$prefix}sect_image", 'visible' => ['uk_sect_layout', 'layout1'], 'type' => 'image_advanced', 'columns' => 6, 'force_delete' => false, 'max_file_uploads' => 2, 'max_status' => false, ), // Layout options array( 'name' => esc_html__( 'Layout', 'codice' ), 'id' => "{$prefix}sect_layout", 'columns' => 3, 'type' => 'select', 'options' => array( 'layout1' => esc_html__( 'Image', 'codice' ), 'layout2' => esc_html__( '2 Columns', 'codice' ), ), ),
It working but if i use 3 6columns fields the last field wrap with another row.
I want all 3 6columns fields in a same row.Thank you.
July 18, 2017 at 11:36 AM #6352Tan Nguyen
ParticipantYou're right. The Columns extension will wrap fields on 12 grid. That means two wysiwyg editors are in the same row and the remaining in the same row. There is a trick to wrap 3 columns in the same row, by setting the second column to column of 5 instead of 6:
array( 'name' => false, 'id' => "{$prefix}sect_editor", 'type' => 'wysiwyg', 'columns' => 6, 'raw' => true, 'options' => array( 'textarea_rows' => 15, 'wpautop' => false, ), ), array( 'name' => false, 'id' => "{$prefix}sect_editor2", 'visible' => ['uk_sect_layout', 'layout2'], 'type' => 'wysiwyg', 'columns' => 5, 'raw' => true, 'options' => array( 'textarea_rows' => 15, 'wpautop' => false, ), ), // Image Columns array( 'name' => esc_html__( 'Section Images', 'codice' ), 'id' => "{$prefix}sect_image", 'visible' => ['uk_sect_layout', 'layout1'], 'type' => 'image_advanced', 'columns' => 6, 'force_delete' => false, 'max_file_uploads' => 2, 'max_status' => false, ), // Layout options array( 'name' => esc_html__( 'Layout', 'codice' ), 'id' => "{$prefix}sect_layout", 'columns' => 3, 'type' => 'select', 'options' => array( 'layout1' => esc_html__( 'Image', 'codice' ), 'layout2' => esc_html__( '2 Columns', 'codice' ), ), ),
Please try and let me know if you have any problem.
Cheers!
July 18, 2017 at 11:43 AM #6353Anh Tran
KeymasterHi uththamag,
As Tan said in the previous reply, each field belongs to 1 column, so hiding a column probably break the layout unless we use a trick like above.
In the next couple of days, I will work on allowing multiple fields in a column, so you can hide/show them without problem. Please be patient.
Thanks
AnhJuly 18, 2017 at 12:43 PM #6354uththamag
ParticipantHi, Anh
Yes, the fix is working thank you very much. But I want 6, 6 Columns not 6, 5 Columns. Is there any option for add a class to the visible Columns? then I can give a width to the visible Columns.
Ex: If I change the layout to:
layout 1 add class to "layout1" Column
layout 2 add class to "layout2" Columns
layout 3 add class to layout3 ColumnsThank you.
July 18, 2017 at 5:30 PM #6357Anh Tran
KeymasterYes, you can always do that with
class
attribute of the field. Just add a custom CSS class to the "5-columns" field and change its width with CSS. It's kind of a hack while waiting for a better solution that we're working on. -
AuthorPosts
- The topic ‘Core Extensions Bundle refund.’ is closed to new replies.