How to remove related products in WooCommerce

Rock WPHow toHow to remove related products in WooCommerce

If you are looking to remove related products in WooCommerce, there are a few different methods you can use. In this article, we will go over two methods: using a plugin and modifying your theme code.

Method 1: Using a Plugin

The easiest way to remove related products in WooCommerce is to use a plugin. One of the most popular plugins for this purpose is the “NS Remove Related Products” plugin. Here’s how you can use it:

Step 1: Install and activate the plugin Log in to your WordPress dashboard and navigate to the “Plugins” section. Click on “Add New” and search for “Disable Related Products.” Install and activate the plugin.

Step 2: Configure the plugin settings Once the plugin is activated, navigate to the “WooCommerce” section of your WordPress dashboard and click on “Settings.” From there, click on the “Products” tab and scroll down to the “Related Products” section. Check the box next to “Disable Related Products” and save your changes.

Method 2: Modifying Your Theme Code

If you prefer to modify your theme code, you can do so by adding some code to your functions.php file. Here’s how:

Step 1: Access your theme files Log in to your website’s server via FTP or using your hosting provider’s file manager. Navigate to the wp-content/themes directory and locate your current theme’s folder.

Step 2: Open the functions.php file Inside your theme’s folder, locate the functions.php file and open it in a code editor.

Step 3: Add the code Add the following code to your functions.php file:

remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );

Step 4: Save and upload the file Save your changes to the functions.php file and upload it to your server.


Removing related products in WooCommerce can be done in a few different ways, depending on your preferences and technical skills. Using a plugin or modifying your theme code are two popular methods, and both can be done relatively easily. Regardless of which method you choose, make sure to test your changes thoroughly to ensure they are working correctly.

Help improving: How to remove related products in WooCommerce

Do you have questions, comments or feedback about this topic? Share your voice below!

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments

Looking for Cheaper & Better Hosting?

Save big and boost your site with affordable, superior WordPress hosting!

Compare Hosting Deals

Related Stories