简体   繁体   English

覆盖WooCommerce CSS问题

[英]Overriding WooCommerce CSS issues

I am having trouble overriding the default styling that comes with WooCommerce. 我无法覆盖WooCommerce随附的默认样式。 Specifically, I am trying to hide certain fields that display on my checkout page (see screenshot of the code). 具体来说,我试图隐藏某些在结帐页面上显示的字段(请参阅代码的屏幕截图)。 I mocked up my page on Code Pen and my css is working fine, so I am not sure why it doesn't work on my styles.css of my child theme. 我在Code Pen上模拟了我的页面,而我的CSS正常工作,所以我不确定为什么它不适用于我的子主题的styles.css。 Any help is appreciated! 任何帮助表示赞赏!

.variation li div:first-child  {
display: none; }

https://codepen.io/jagorski/pen/oZBYrd https://codepen.io/jagorski/pen/oZBYrd

在此处输入图片说明

Clear the browser cache & try this: 清除浏览器缓存并尝试以下操作:

.variation-JobListing:first-child  {
    display: none !important;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM