Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @plantprogrammer,

    I wasn’t able to remove that section either, however, there is a much simpler way to do it. You can add the following code in the Additional CSS editor within the Customizer.

    .related.products {
      display: none;
    }

    I hope this will help.

    Hi,

    I have found a code snippet that works without using CSS code.
    This can be added at the end of the functions.php file of a child theme.

    function remove_related_products() {
    	add_filter('woocommerce_product_related_posts_query', '__return_empty_array', 20);
    }
    add_action( 'after_setup_theme', 'remove_related_products' );

    It’s possible to download a ready-made child for Hestia from this guide.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issue with Removing Related Products with WooCommerce’ is closed to new replies.