Remove Related Products Woocommerce

remove-related-products-woocommerce
Spread the love

To Remove Related products from Single Product page is very easy, to do this you will have to add custom code to your functions.php file of your theme. Better idea to add this code into child-theme functions.php. if you don’t have child theme you will have to create one. Because if you add this code directly into Theme functions.php it will all gone after you update the theme.

Note : Use Child theme to perform this action

/**
 * Remove related products output
 */
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );

if you don’t know about child theme function here is another way you can remove related products by using css

.related.products {
visibility:hidden;
}

Below is the screenshot attached

remove-related-products-woocommerce

Leave a Reply

Your email address will not be published. Required fields are marked *

WP Twitter Auto Publish Powered By : XYZScripts.com