WooCommerce - excelling eCommerce
[resolved] remove description and review page (2 posts)

  1. somefatlady
    Posted 2 years ago #

    I wanted to remove the Description and the review section of the shopping pages. I have all that info somewhere else and I just want them gone. Does anyone have any ideas of what to do?

    My site (I am happy with everything on that page but the description and review boxes) Also this is a test page



  2. Coen Jacobs
    Posted 2 years ago #

    The tabs (including corresponding panels) are added by the following actions:

    add_action( 'woocommerce_product_tabs', 'woocommerce_product_description_tab', 10 );
    add_action( 'woocommerce_product_tabs', 'woocommerce_product_attributes_tab', 20 );
    add_action( 'woocommerce_product_tabs', 'woocommerce_product_reviews_tab', 30 );
    add_action( 'woocommerce_product_tab_panels', 'woocommerce_product_description_panel', 10 );
    add_action( 'woocommerce_product_tab_panels', 'woocommerce_product_attributes_panel', 20 );
    add_action( 'woocommerce_product_tab_panels', 'woocommerce_product_reviews_panel', 30 );

    You can remove all of them, by reversing this add_action() function and using remove_action() calling with the same arguments. For example to remove the reviews tab and panel:

    remove_action( 'woocommerce_product_tabs', 'woocommerce_product_reviews_tab', 30 );
    remove_action( 'woocommerce_product_tab_panels', 'woocommerce_product_reviews_panel', 30 );

    This code should go in your (child) themes functions.php, or create a plugin out of it.

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