本文介绍了Woocommerce hook - 从产品类别页面中删除类别标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要从 woo-commerce 产品类别页面中删除类别标题.
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.
类别标题有挂钩吗?
推荐答案
我猜你的主题覆盖了钩子
I guess your Theme is overriding the hook
woocommerce_after_shop_loop_item_title
woocommerce_after_shop_loop_item_title 钩子负责返回标题.就我而言,这也是一个问题.
woocommerce_after_shop_loop_item_title hook is responsible to return the title. In my case also this was an issue.
这篇关于Woocommerce hook - 从产品类别页面中删除类别标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!