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.
Need fast email support? Get SiteOrigin Premium
Replies
3Hi 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.
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
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.