Hello,
we wanna remove VIEW CART button from mini cart.
Most simple way is via CSS. But its not the best way about performance.
So we try this snippet to remove it from mini cart:
add_action( ‘woocommerce_widget_shopping_cart_buttons’, ‘bbloomer_remove_view_cart_minicart’, 1 );
function bbloomer_remove_view_cart_minicart() {
remove_action( ‘woocommerce_widget_shopping_cart_buttons’, ‘woocommerce_widget_shopping_cart_button_view_cart’, 10 );
}
But its not working in woodmart, but in all other themes we tested before.
Coud you tell me the correct function name or how to remove view cart button without css please?
We need to find a script solution and not via CSS.
All the codes on internet working for most of all themes. But on woodmart no one is working.
BR
Tommy
Attachments:
You must be
logged in to view attached files.