WordPress.org

Forums

WooCommerce - excelling eCommerce
Can't remove Sidebar and Related products in functions.php (1 post)

  1. cjc1867
    Member
    Posted 1 year ago #

    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

    Thanks

    Colin

    https://wordpress.org/plugins/woocommerce/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.