1. Home
  2. Docs
  3. Developers “How To’s”
  4. Remove Content Element from Grid Builder

Remove Content Element from Grid Builder

To remove content elements from Grid Builder it is necessary to add the following function to the functions.php of your WordPress theme.

Remove WooCommerce from “Add Element” List

<?php
 
function vc_remove_shortcodes_from_vc_grid_element( $shortcodes ) {
  unset( $shortcodes['vc_gitem_acf'] );
  return $shortcodes;
}
// using wp filter hook to remove shortcodes from the list;
add_filter( 'vc_grid_item_shortcodes', 'vc_remove_shortcodes_from_vc_grid_element', 100 );