admin管理员组文章数量:1201370
I'm trying to hide some text and a checkbox on this URL: /
Specifically, I'm trying to hide the "Copy from Billing Address" text and checkbox. This is currently being added to the page via a WooCommerce Wholesale plugin.
This is what the code currently looks like:
<label for="wwp_wholesaler_copy_billing_address">Copy from billing address</label>
<input type="checkbox" name="wwp_wholesaler_copy_billing_address" id="wwp_wholesaler_copy_billing_address" value="yes">
I was successfully able to hide the checkbox by adding this CSS:
#wwp_wholesaler_copy_billing_address { display: none;}
But I'm having trouble removing the label "Copy from Billing Address".
I tried using this CSS, but it isn't working:
label[for="wwp_wholesaler_copy_billing_address"]
{ display: none;}
Any suggestions?
Thanks!
I'm trying to hide some text and a checkbox on this URL: https://bndlstech.com/wholesale-registration-form/
Specifically, I'm trying to hide the "Copy from Billing Address" text and checkbox. This is currently being added to the page via a WooCommerce Wholesale plugin.
This is what the code currently looks like:
<label for="wwp_wholesaler_copy_billing_address">Copy from billing address</label>
<input type="checkbox" name="wwp_wholesaler_copy_billing_address" id="wwp_wholesaler_copy_billing_address" value="yes">
I was successfully able to hide the checkbox by adding this CSS:
#wwp_wholesaler_copy_billing_address { display: none;}
But I'm having trouble removing the label "Copy from Billing Address".
I tried using this CSS, but it isn't working:
label[for="wwp_wholesaler_copy_billing_address"]
{ display: none;}
Any suggestions?
Thanks!
Share Improve this question asked Jul 13, 2021 at 19:08 CeladorCelador 33 bronze badges 1 |1 Answer
Reset to default 1remove the quotation marks so it looks like the following
label[for=wwp_wholesaler_copy_billing_address] {
display: none;
}
Try that and let me know if that works for you.
本文标签: Hiding Label via CSS
版权声明:本文标题:Hiding Label via CSS 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738546033a2096436.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
label
CSS block? I just tried adding it to a random CSS file in Chrome's dev tools and it disappeared. Also make sure you clear your cache and hard reload after making CSS changes (and if the CSS is enqueued in WordPress, ensure you're changing the version parameter towp_enqueue_style
) – phatskat Commented Jul 13, 2021 at 20:05