Home Forums WoodMart support forum Want to remove “view cart” button in mini cart

Want to remove “view cart” button in mini cart

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #599584

    joelmellin
    Participant

    Hi,

    I used this code as a code snippet to remove Remove “View Cart” Button in mini cart, but it does not work.

    if ( ! function_exists( ‘woodmart_mini_cart_view_cart_btn’ ) ) {
    function woodmart_mini_cart_view_cart_btn() {
    return;
    }
    remove_action( ‘woocommerce_widget_shopping_cart_buttons’, ‘woocommerce_widget_shopping_cart_button_view_cart’, 10 );
    add_action( ‘woocommerce_widget_shopping_cart_buttons’, ‘woodmart_mini_cart_view_cart_btn’, 10 );
    }

    • This topic was modified 8 months ago by joelmellin.
    • This topic was modified 8 months ago by joelmellin.
    #599706

    Hello,

    Please add this code to the Theme Settings > Custom CSS > Global.

    body .woocommerce-mini-cart__buttons .btn-cart {
    display:none;
    }

    Best Regards

    #599822

    joelmellin
    Participant

    Thanks, works.

    #599900

    Most Welcome!!!.

    I’m so happy to hear you are pleased with the Theme and Support. XTEMOS strives to deliver the best customer experience, and it makes our day to hear we have accomplished that.

    We count ourselves lucky to have you as a customer. You can always reach us at any time. We are always here to help you.

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Want to remove “view cart” button in mini cart’ is closed to new replies.