检查元素定位到购物车,将display属性改为none, 并将下列代码粘贴到 Additional CSS中。
.site-header-cart .cart-contents {
padding: 1.618em 0;
display: none;
position: relative;
background-color: rgba(0,0,0,0);
height: auto;
width: auto;
text-indent: 0;
}
Adding the Rule
The remaining part is to copy/paste into the “Additional CSS” section of your Storefront theme customization interface. To do this:
- Log into your WordPress site and access the Dashboard as the admin user.
- From the Dashboard menu, click on Appearance Menu > Customize.
- Navigate down to Additional CSS in the left sidebar that appears.