Categories

Featured templates

WooCommerce. How to get rid of “Related products” section

Sarah Vaynbaum September 7, 2016
Rating: 5.0/5. From 2 votes.
Please wait...

Hello, this time we will learn how to get rid of “Related products” section in your WooCommerce template.

In order to apply changes, we need to follow the steps, indicated below.

  1. Login to site admin panel, and visit Appearance -> Editor section. Find there the custom-function.php or functions.php file.

  2. Place the following code to the end of the file:

    <?php
    function wc_remove_related_products( $args ) {
    return array();
    }
    
    add_filter('woocommerce_related_products_args','wc_remove_related_products', 10);
    WooCommerce. How to get rid of Related products section
  3. Save the changes in the file.

Reload the page in order to see changes applied.

Feel free to check the detailed video tutorial below:

WooCommerce. How to get rid of “Related products” section
Cool Wordpress Themes
This entry was posted in WooCommerce Tutorials and tagged related posts, WooCommerce. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket