Skip to content
Public Ticket #28708

Want to remove "view cart" option

Conversation thread

PenciDesign Supporter replied

Staff Reply

Hi,

Please go to Appearance → Customize → Custom CSS then add the following custom CSS code:

.penci-sidebar-cart .penci-woo-cart-total-group {
  bottom: 60px;
}

Regards,
PenciDesign.



sourav replied

Customer Reply

It worked but there's still a gap / spacing , I want to push that entire subtotal and checkout to the bottom

I have attached an image fort better understanding 

PenciDesign Supporter replied

Staff Reply

Hi,

Please go to Appearance → Customize → Custom CSS then add the following custom CSS code:

.penci-sidebar-cart .penci-woo-cart-buttons-group {
  min-height: 55px;
}

Regards,
PenciDesign.



sourav replied

Customer Reply

It works but there's a problem, there's a huge gap or spacing in that area , please help me reduce the gap

i have attached an image for better understanding 

PenciDesign Supporter replied

Staff Reply

Hi,

You should paste this code into the function.php of the child theme or via the CodeSnippet plugin here: https://wordpress.org/plugins/code-snippets/

add_action( 'woocommerce_widget_shopping_cart_buttons', 'penci_remove_view_cart_minicart', 1 );
 
function penci_remove_view_cart_minicart() {
   remove_action( 'woocommerce_widget_shopping_cart_buttons', 'woocommerce_widget_shopping_cart_button_view_cart', 10 );
}

Regards,
PenciDesign.

sourav started the conversation

Conversation Start

Hi , i would like to remove the view cart option whenever someone clicks on the cart icon on the header.

I have attached an image for better explanation

Want to join this conversation or access attachments? Sign in first.