Issue with Removing Related Products with WooCommerce
-
I’m having issues with removing the related products in the single product view.
I used what was recommended here:
https://docs.themeisle.com/article/833-how-to-remove-related-products-from-hestia
and it is not working.
The Hestia theme has some weird stuff that is possibly prohibiting this code from working:
private function manage_related_products() { $hooks = array( 'add' => array( array( 'woocommerce_after_single_product', 'woocommerce_output_related_products', 20 ), ), 'remove' => array( array( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 ), ), );
I tried hooking it on different actions, but it still doesn’t work.
If I remove
array( 'woocommerce_after_single_product', 'woocommerce_output_related_products', 20 ),
in the preceeding code, the recommended code works, so I don’t know what’s going on.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Issue with Removing Related Products with WooCommerce’ is closed to new replies.