Support » Plugin: WooCommerce » Can't remove Sidebar and Related products in functions.php

  • Hi
    Getting really frustrated now as I can’t remove the Sidebar and the Related products. I am using a theme called Attitude.

    I have used the following in my child themes functions file:

    remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);


    remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );

    It works it works using the local host version but that is using woocommerce ver 2.1.2 and the live version is 2.1.3

    I have even copied the single-product.php to my child theme folder and commented the bit that gets the sidebar, again works on localhost but not on the live version.

    Any ideas please



  • The topic ‘Can't remove Sidebar and Related products in functions.php’ is closed to new replies.