I am building a website and my client doesn't want the cart icon to appear on the home page. On every other page it should appear, just not on the home page. How can I tell it to not display on a particular page? I'm guessing I can use CSS 'display: none;' but i'm not sure how to indicate only to do that on the main page?
Just to confirm, the cart is setup in the 'header' of my page.
Not sure that you need it, but here is my code:
HTML:
<div class="header-minicart">
<a class="skip-link skip-cart no-count" data-target-element="#header-cart" href="https://URL/checkout/cart/">
<span class="icon"></span>
<span class="label"></span>
<span class="count"></span>
</a>
<div id="header-cart" class="block block-cart skip-content"></div>
</div>
CSS:
.skip-cart .icon {
background-position: 0px -95px;
display: inline-block;
width: 30px;
vertical-align: middle;
height: 30px;
background-image: url("../images/icon_sprite.png");
background-repeat: no-repeat;
text-indent: -9999px;
float: right;
margin-top: 0px;
margin-right: 30px;
}
Thanks in advance!!