删除快速视图,添加到购物篮并添加到愿望清单胡佛图标 - woocommerce

问题描述 投票:0回答:1

我试图找到一种方法来删除当我胡佛产品时弹出的三个按钮 - 快速查看,添加到愿望清单,添加到购物篮。我尝试过以下代码,但它只删除了图标,文本和功能本身仍然存在。

CSS:

.related.products .yith-wcqv-button {
display: none;
}

PHP:

add_action( ‘template_redirect’, ‘yith_wcqv_remove_from_wishlist’ );
function yith_wcqv_remove_from_wishlist(){
if( function_exists( ‘YITH_WCQV_Frontend’ ) && defined(‘YITH_WCQV_FREE_INIT’) ) {
remove_action( ‘yith_wcwl_table_after_product_name’, array( YITH_WCQV_Frontend(), ‘yith_add_quick_view_button’ ), 15 );
}
}

我需要帮助的页面:http://poshwish.co.uk

wordpress woocommerce
1个回答
0
投票

我设法自己删除它们。将以下代码添加到主题css文件中,它具有魔力:

.product_list_widget .quick-view{
  display: none;
}
.product-interactions {
  display: none;
}
© www.soinside.com 2019 - 2024. All rights reserved.