Black Friday Discount 50% Off · Use Code BF2020 at Checkout

How to Remove WooCommerce Related Products

WooCommerce Related Products Screenshot
An example of Related Products in WooCommerce

Many WooCommerce themes show customers a list of related products on the individual item pages of your store. Showing related products give shoppers a quick way to continue browsing products and, ultimately, add some more to their cart before checkout.

Related products are a great way to increase sales and grow exposure for your catalog of goods. Unfortunately, if your site doesn’t have a lot of products or the matches WooCommerce considers “related” don’t make a lot of sense it’s usually best to disable this feature entirely.

You can turn off the related products section of your product pages in two different ways. The first requires some file editing and a basic understanding of how to modify a WordPress theme. The second is with our easy to use Remove WooCommerce Features plugin; no file editing or coding required.

How to Hide Related Products in WooCommerce with Code

You can remove related products from a store’s theme yourself if you aren’t afraid to get your hands a little dirty. Here is a quick rundown on how you can safely create a modified version of your WooCommerce store’s theme that does not include related products.

WARNING! First, please backup your current WordPress theme before you start making changes. It’s highly recommended that you do these steps locally on your own machine. Upload the changes to your store’s web server after the fact by using an FTP program.

Create a Child Theme

The safest way to make large changes to a WooCommerce store’s theme is by creating a child theme first. You can learn more about what child themes are on the official WordPress site. The general idea is that a child theme lets you make changes and additions to any existing theme safely. When a child theme isn’t used and the main theme is directly changed there is a risk future updates will overwrite and erase the modifications you made.

Insert Code into the Child Theme

Every WordPress theme should come with a file called functions.php. You’re going to want to make that file in your child theme’s directory if it doesn’t exist. Open it and add the following line of code.

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

Upload Your Child Theme

Once that’s done you’ll need to save the file and then upload your entire child theme to your web server. FTP can sometimes be a complicated process. If you aren’t familiar you might need to hire a professional. You can also ask your hosting service’s customer support staff for help.

Too much technical mumbo jumbo for you? Consider handling all of this without writing a single line of code yourself. You can also avoid paying a high priced WordPress developer to do the work for you. Skip ahead to learn how our Remove WooCommerce Features plugin can help.

Activate Your Child Theme

The child theme you created should now be visible inside of the WordPress admin. You can find it by going to the Appearance option on the main menu. You’ll know you have made a mistake somewhere if your theme isn’t appearing or your site is throwing errors. Do a search for any errors you see and you might be able to narrow down what you did wrong. Programming, even at this basic level, can sometimes be a tricky task. The slightest typo or mistake can bring your whole store offline.

The next time you load up your WooCommerce store the related products section of your site will be gone. That is assuming you have followed all of these steps correctly.

Congratulations! You just became a WordPress developer. Of course, there are many people not interested in all of this technical stuff and the risks involved. There’s an easier way to solve this particular WooCommerce change.

How to Disable WooCommerce Related Products the Easy Way

There’s another way to take care of removing WooCommerce related products. It doesn’t involve editing files, writing some code, or finding a WordPress developer.

You can purchase our Remove WooCommerce Features plugin and have your related products disappear in three simple steps.

Step #1

Go to the WooCommerce section of your WordPress installation’s admin menu and click the link that says Remove Features.

WooCommerce Admin Menu

Step #2

Find the setting for Related Products and click the checkbox so that it’s marked like so:

Remove WooCommerce Features - Related Products

Step #3

Press the button.

As soon as you press the “Save Settings” button related products will immediately be removed from your site.

WooCommerce Disable Related Products Screenshot
An example of Related Products disabled from WooCommerce

Using the Remove WooCommerce Features plugin, instead of modifying your theme directly, is quicker and requires zero programming knowledge.

It is also a longer-lasting solution. No matter what theme you use or update your setting for disabling related products will be applied.

Remove WooCommerce Features can help you remove a bunch of features you don’t want on your store including:

Remove WooCommerce Features Logo