To remove parameter from existing content element you can use vc_remove_param() function.
<?php vc_remove_param( $shortcode, $attribute_name ); ?>
Params
Param name | Type | Description |
---|---|---|
$shortcode | String | Shortcode base. For [my_shortcode] shortcode base is my_shortcode. For default “Message box” element, base is “vc_message” |
$attribute_name | String | Parameter name (param_name) from “params” array in your vc_map function call |
Example
If you wish to remove “Extra css class” from “Message box” content element, you should use this code.
<?php vc_remove_param( "vc_message", "el_class" ); // Note: 'vc_message' was used as a base for "Message box" element ?>