This topic is: resolved
-
Hi.
I am searching for a way to remove some dhvc-elements from page-builder in order to increase clarity. But I don´t want to loose changes after updating.
I already did it with woocommerce elements via functions-custom.php and it works well. But it doesn´t work with your elements (see attached code). Do you have an idea for me?Thank you very much for your help!
function standard_woocomemrce_vc_remove_woocommerce() { vc_remove_element( 'woocommerce_cart' ); vc_remove_element( 'woocommerce_checkout' ); vc_remove_element( 'woocommerce_order_tracking' ); vc_remove_element( 'product_category' ); vc_remove_element( 'product_categories' ); vc_remove_element( 'sale_products' ); vc_remove_element( 'top_rated_products' ); vc_remove_element( 'best_selling_products' ); vc_remove_element( 'product_attribute' ); vc_remove_element( 'dhvc_woo_product_page_product_top_rated_products_shortcode' ); vc_remove_element( 'dhvc_woo_product_page_add_to_cart' ); // Add other elements that should be removed here } // Hook for admin editor. add_action( 'vc_build_admin_page', 'standard_woocomemrce_vc_remove_woocommerce', 11 ); // Hook for frontend editor. add_action( 'vc_load_shortcode', 'standard_woocomemrce_vc_remove_woocommerce', 11 );