Core Extensions Bundle refund.

Support General Core Extensions Bundle refund.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #6342
    uththamaguththamag
    Participant

    Hi,

    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.

    #6346
    Tan NguyenTan Nguyen
    Participant

    Dear 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.

    #6348
    uththamaguththamag
    Participant

    Hi,

    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.

    #6352
    Tan NguyenTan Nguyen
    Participant

    You'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!

    #6353
    Anh TranAnh Tran
    Keymaster

    Hi 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
    Anh

    #6354
    uththamaguththamag
    Participant

    Hi, 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 Columns

    Thank you.

    #6357
    Anh TranAnh Tran
    Keymaster

    Yes, 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.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Core Extensions Bundle refund.’ is closed to new replies.