Forum Replies Created
-
AuthorPosts
-
ShikoroParticipant@alexfilutze
- 19 Topics
- 73 Posts
`add_action( ‘wp_footer’, function() {
if ( WC()->cart->is_empty() ) {
echo ‘<style type=”text/css”>ul.grimlock-woocommerce-navbar_nav_menu.nav.navbar-nav.grimlock-navbar-nav–woocommerce.navbar-nav–woocommerce{ display: none; }</style>’;
}
});This was the code I added or desktop in the function.php file for the child theme.
I removed the code I added and added in your and for desktop it still removes the cart, however if you were to go to our website on your mobile device it still does not remove the cart on mobile.
If you plan to add something to the theme this is something we could wait on but just wanted you to see the cart stays on mobile.
May 14, 2022 at 00:12 #40480ShikoroParticipant@alexfilutze- 19 Topics
- 73 Posts
Thanks for the direction on the layout, missed that when going through.
As far as the mobile cart icon I cannot get it to go away due to Grimlock Woocommerce.
Desktop I have it removed unless a product is added but I cannot replicate this while Grimlock Woocommerce is active for mobile.
May 11, 2022 at 23:10 #40442ShikoroParticipant@alexfilutze- 19 Topics
- 73 Posts
Ah looks like it has to do with grimlock, for anyone asking how to hide to entire cart you will need this class –
ul.grimlock-woocommerce-navbar_nav_menu.nav.navbar-nav.grimlock-navbar-nav--woocommerce.navbar-nav--woocommerce
May 9, 2022 at 22:26 #40365 -
AuthorPosts