This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Remove related products in Vantage Theme

Resolved 3 replies premiumthemetheme-vantage
11 years ago · Last reply by Andrew Misplon 11 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

3
  1. Andrew Misplon Staff 11 years, 2 months ago

    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. Greg Kazz Kasse 11 years, 2 months ago

    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. Andrew Misplon Staff 11 years, 2 months ago

    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.

Have a different question or issue?

Start New Thread