Need help in the process of creating your own WordPress theme?
There’s a simple way to add Visual Composer’s CSS Editor to your shortcode. Option type design
will be mapped to css_editor
param.
Note
This feature requires the following Bumblebee extensions: Shortcodes, Visual Composer
Example:
'design' => array(
'type' => 'design',
'tab' => esc_html__( 'Design options', 'ct_theme' ),
'label' => esc_html__( 'Design options', 'ct_theme' ), // optional
),
Result:
The view attribute will return a css style you can add to a shortcode container. Example:
<div class="<?php echo esc_attr( $atts['design'] ); ?>">
</div>