Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 需要在WooCommerce结帐页面上隐藏一种付款方式_Css_Wordpress - Fatal编程技术网

Css 需要在WooCommerce结帐页面上隐藏一种付款方式

Css 需要在WooCommerce结帐页面上隐藏一种付款方式,css,wordpress,Css,Wordpress,我已经在WooCommerce设置中禁用了信用卡支付/输液软件网关,但它仍然在结账时显示信用卡支付选项。现在,我想把它藏起来,直到我找到一个永久的解决方案。你能帮我在哪里输入“display:none”来隐藏页面上的第二个单选按钮吗。请看屏幕截图 尝试添加显示:无到自定义CSS中的payment\u method\u infusionsoft类 最好的方法是使用如下“链”选择器: li.wc_payment_method.payment_method_infusionsoft{ display

我已经在WooCommerce设置中禁用了信用卡支付/输液软件网关,但它仍然在结账时显示信用卡支付选项。现在,我想把它藏起来,直到我找到一个永久的解决方案。你能帮我在哪里输入“display:none”来隐藏页面上的第二个单选按钮吗。请看屏幕截图

尝试添加
显示:无
到自定义CSS中的
payment\u method\u infusionsoft

最好的方法是使用如下“链”选择器:

li.wc_payment_method.payment_method_infusionsoft{
 display:none !important;
}


希望这对你有用。

这是一个非常糟糕的方法!
function payment_gateway_disable_postpay( $available_gateways ) 
{    
    unset( $available_gateways['paytm'] ); //replace paytm with your payment gateway
    return $available_gateways;
}
add_filter( 'woocommerce_available_payment_gateways', 'payment_gateway_disable_postpay' );