Home>Support>Remove related products in Vantage Theme

Remove related products in Vantage Theme

To remove the Related Products block you’ll need to create a child theme, add a functions.php file to that child theme and enter the following into that file:

I did the above and now where do I enter the file?
<?php
function woocommerce_remove_related_products(){
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20);
}
add_action('woocommerce_after_single_product_summary', 'woocommerce_remove_related_products');

Thank you

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    Hi Greg

    If you’re not already running a child theme you can use this one I created for this purpose:

    https://siteorigin.com/wp-content/uploads/2014/12/vantage-child-woocommerce-remove-related-products.zip

    Install the ZIP via Appearance > Themes > Add New: Upload ZIP.

    Test it out. If it works you’ll unfortunately need to redo Appearance > Customize and Menu settings. Those reset when a child theme is activated.

  2. 9 years, 9 months ago Greg Kazz Kasse

    Thank you so much! It works and I did not have to reset anything! I am very happy with the support you are giving me!

    Greg

  3. 9 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    Super, really glad to hear that helped!

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More