If you want to remove the related products output from the single product page in WooCommerce store, then this answer is for you as I have shared How to remove related products output in WooCommerce.
There are two ways to achieve this one is by using the remove_action
and other is by CSS code.
Add the below code at the end of your theme’s functions.php file or you can also add the below code inside your site-specific plugin.
1 2 3 4 5 | /** * Remove related products output */ remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 ); |
This is another ways to remove related products output. Add the below CSS code in your theme’s style.css file.
1 2 3 | .related.products { display: none; } |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.