If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

Featured templates

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

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
 
Start chat