I need to remove category title from woo-commerce product category pages.
Any hook for removing category title same as product title hook? I have googled and tried so many things for it but didn’t found right solution. Found hook for removing product title.
remove_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_title', 10 );
Need a hook same like above for removing category title.
Is any hook for category title?
2
Answers
The Function
woocommerce_template_loop_category_title()
is responsible to return the title of category on shop or category page in woocommerce You can see here for more detailsusing hook 1st method
using css 2nd method
result
I guess your Theme is overriding the hook
woocommerce_after_shop_loop_item_title hook is responsible to return the title. In my case also this was an issue.