Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #3658212
Want to remove "view cart" option
Closed

Comments

  • sourav started the conversation

    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

    Attached files:  Screenshot 2024-05-31 114605.png

  •  2,609
    PenciDesign replied

    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 replied

    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 

    Attached files:  mini cart 2.png

  •  2,609
    PenciDesign replied

    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

    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 

    Attached files:  mini cart 3.png

  •  2,609
    PenciDesign replied

    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.