How to Remove WooCommerce Related Products Output in Divi

by | Last updated Oct 28, 2024 | WooCommerce Tutorials

remove woocommerce related products

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.

Shop Divi Products

Buy nicely done Divi Layouts, Child themes, and extensions for your next Divi project.

Related Articles

How To Change “Add To Cart” Button Text in DIVI Theme

How To Change “Add To Cart” Button Text in DIVI Theme

If you have been looking for a way to change Add to cart button text in wooCommerce in Divi Theme, this code will let you change the text to anything you want. To be able to change the text, follow the steps below: Go to WordPress admin dashboard. Then go to...

How to Change “Billing & Shipping” Title in  WooCommerce

How to Change “Billing & Shipping” Title in WooCommerce

If you're running an eCommerce site for a pickup-only or digital downloads shop using WooCommerce, you may have noticed that the default checkout form displays an H3 heading that reads "Billing & Shipping". For businesses that don't offer shipping, this can be...

How to Import Demo Products to WooCommerce Shop

How to Import Demo Products to WooCommerce Shop

Setting up a new WooCommerce store can be exciting, but populating it with products from scratch can be time-consuming. Especially if you are a web designer who just wants to design the website. Fortunately, WooCommerce offers a simple solution: importing sample data....

Leave a Comment

0 Comments

Submit a Comment

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

WP101 - FREE WordPress Tutorials

Enter your email address below to gain access to the FREE WordPress training.

You have Successfully Subscribed!

Pin It on Pinterest