Website Building » WooCommerce » How Do You Remove You May Also Like on WooCommerce?

How Do You Remove You May Also Like on WooCommerce?

Last updated on October 1, 2022 @ 4:27 pm

If you run a WooCommerce store, you’ve probably noticed the “You May Also Like” section that appears on product pages. This section is generated automatically by WooCommerce and contains products that are similar to the one being viewed.

While this feature can be helpful in promoting other products on your site, it can also be a bit intrusive and may not fit with your overall design. Fortunately, there is a easy way to remove the “You May Also Like” section from your WooCommerce product pages. Simply add the following code to your functions.php file:

remove_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_related_products’, 20);

This code tells WooCommerce not to display the “You May Also Like” section on product pages. You can also use this same code to remove other sections from WooCommerce pages, such as the “Upsells” section that appears on the cart page.

PRO TIP: If you are considering removing the “You May Also Like” feature on WooCommerce, we advise you to proceed with caution. This feature is designed to help customers find products they may be interested in, and removing it could negatively impact your sales.

How Do You Remove You May Also Like on WooCommerce?

To remove the “You May Also Like” section from your WooCommerce product pages, simply add the following code to your functions.php file:

Drew Clemente

Drew Clemente

Devops & Sysadmin engineer. I basically build infrastructure online.