Hello,
I’m using Refresh 9.0 theme and I recently removed a header and footer from this specific page, when I did that it took away the cart icon from this page?
Is there any way to add back the cart button but keep the header and footer gone? I removed the header and footer through .css code.
https://snackbox.canteen.com/collections/fgcu
Thank you,
Daniel
If you make display none to the main parent div then you can’t make the child element visible for it. You have to keep separate cart icons outside the header for the pages where you have to hide the header and footer.
Modify the CSS code to exclude the cart icon from being hidden. You can do this by using a more specific selector for the cart icon element. For example, if the cart icon has a class of .cart-icon, you can update the CSS code as follows:
.page-template-template-custom-page .site-header,
.page-template-template-custom-page .site-footer {
display: none;
}
.page-template-template-custom-page .cart-icon {
display: block;
}