Home › Forums › Support › show cart only when a product is inside This topic has 3 replies, 2 voices, and was last updated 3 years, 11 months ago by Leo. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts May 31, 2020 at 4:45 pm #1309208 generatepressuser Hello How could I hide the cart and only show after a product is inside? I found this hint from you https://generatepress.com/forums/topic/woocommerce-show-cart-in-primary-menu-if-not-empty/ but not sure if its still up to date? If yes, is that php code meant for function.php ? Thanks May 31, 2020 at 6:11 pm #1309253 LeoStaff Customer Support Hi there, Try this: https://docs.generatepress.com/article/hide-cart-in-menu-when-empty/ Adding CSS: https://docs.generatepress.com/article/adding-css/ Let me know if this helps π June 1, 2020 at 2:05 pm #1310335 generatepressuser Hello, Thank you very much, its working perfect π best regards! June 1, 2020 at 2:49 pm #1310367 LeoStaff Customer Support No problem π Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In