- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
WooCommerce. How to get rid of “Related products” section
September 7, 2016
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.
Login to site admin panel, and visit Appearance -> Editor section. Find there the custom-function.php or functions.php file.
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);
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