Sitesao Support
  • Home
  • Themes
  • Plugins
  • Support

Support Forums

Home/Forums/Plugin & Extension/DHWCLayout – Woocommerce Products Layouts/Remove Elements in Backend

Remove Elements in Backend

This topic is: resolved
  • April 23, 2015 at 12:12 pm #2956

    propixel
    Participant

    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 );

    Sorry, this forum is for verified users only. Please Login or Register to continue

Log In
Register Lost Password

Forums

  • Theme & Template
  • Plugin & Extension

Our Themes

Our Plugins

Tags

acf ajax Bug conditional logic css demo DHVC DHVC Form email Error footer form gallery Header Image Images layout login luxury mailchimp Menu mobile newsletter Newsri not working page plugin product product page recaptcha shortcode Sidebar Single Product Page spam Submit Submit button template translate Translation update Visual Composer woocommerce Woo Detail Product Page Builder woow WPML
© Copyright Sitesao.com - Support Policy