Buy Theme

How to enable Visual Composer shortcodes?

We do not support all Visual Composer shortcodes, because they do not fit into our design. But if you need any of that shortcode you can easily re-enable them within the child theme with the filter:

/**
 * Re-enable one or many Visual Composer shortcodes
 *
 * @param array $shortcodes
 *
 * @return array
 */
function silicon_child_enable_vc_shortcodes( array $shortcodes ) {
    $enable = array(
       'vc_basic_grid',
       'vc_media_grid',
    );
   
    return array_diff( $shortcodes, $enable );
}

add_filter( 'silicon_vc_unsupported_shortcodes', 'silicon_child_enable_vc_shortcodes' );

Where $enable is a list of shortcode you want to re-enable. Note, unsupported shortcodes will require additional styling.

Categories