<?php
$fields = array(
array(
'id' => '_gx_flexslider_type',
'name' => __( 'Type', 'genex-framework' ),
'type' => 'radio',
'options' => array(
'image' => __( 'Image', 'genex-framework' ),
'video' => __( 'Video', 'genex-framework' ),
),
'std' => 'image',
'columns' => 12,
),
array(
'id' => '_gx_flexslider_video',
'name' => __( 'Video', 'genex-framework' ),
'type' => 'oembed',
'columns' => 12,
'hidden' => array( '_gx_flexslider_type', '!=', 'video' )
),
array(
'id' => '_gx_flexslider_image',
'name' => __( 'Image', 'genex-framework' ),
'type' => 'image_advanced',
'max_file_uploads' => 1,
'columns' => 12,
'hidden' => array( '_gx_flexslider_type', '!=', 'image' )
),
);
See gap above image.
See gap below video.
It seems from your message, you are using visibility: hidden;
for 12 columns as well. Since its a row, it should use .show()
and .hide()
Thanks for your help