Issue with Removing Related Products with Hestia Theme
-
I’m having issues with removing the related products in the single product view.
I used this
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );
and it is not working with the Hestia theme.
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 ), ), );
Hestia recommends this, but this doesn’t work:
https://docs.themeisle.com/article/833-how-to-remove-related-products-from-hestiaIf 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 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Issue with Removing Related Products with Hestia Theme’ is closed to new replies.