From this tutorial you’ll learn how to remove Related products section from WooCommerce website.
Removing “Related Products” Section
- Let’s make changes in the functions.php file. To do it log in to WordPress Dashboard and navigate to Appearance > Editor tab on the left.
- Here locate functions.php file in the right column and click on it to open.
- Scroll the file to its end and paste the following lines of code to it.
Be sure to remove add_action( ‘woocommerce_after_single_product_summary’, ‘monstroid2_woocommerce_output_related_products’, 20 ); in wocommerce-hooks.php file in order to remove related products.
- Update the file in order to save the changes.
This tutorial is based on Cosmetro Cosmetics Store WooCommerce WordPress theme.