Archived topic
Hide cart icon on a specific page
3 replies · Started by Matthieu on January 22, 2021
Viewing posts 1–4 of 4
Hello do you know if there is a solution, maybe in css to hide the Woocommerce cart icon on a specific page?
Thanks
Hi there,
Are you referring to the cart icon in the menu?
If so try this CSS:
body.page-id-xxx .main-navigation .menu-bar-item.wc-menu-item {
display: none;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Make sure to replace xxx with the actual ID of the page.
Yes it's perfect ! Thanks 😃
No problem :)
This archived topic is closed to new replies.