To remove WooCommerce related products output, add the code below to your Divi Child theme’s function.php file or via plugin such as Code Snippets.
/**
* Remove related products output
*/
remove_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_related_products’, 20 );
Do not add the custom code directly to your parent theme’s functions.php file as this will be wiped entirely when you update the Divi theme.
Another option is to add the CSS code below to Divi Theme Options. Here is how to add a CSS code snippet to a Divi website.
.related.products {
display: none;
}
That’s it for now. To be able to receive more of these tips. Subscribe to my newsletter.





0 Comments