W
W
whatislov2020-12-13 23:42:38
WordPress
whatislov, 2020-12-13 23:42:38

How to hide the navigation menu in the product card and the "update cart" button?

Good afternoon! How can I hide the navigation menu
5fd67b986163b849942385.jpeg
AND the "update cart" button in the cart design.
5fd67bec38538299219487.jpeg

Tried by injecting code in style.css

.woocommerce-pagination {
display: none;
}

The code above to disable product navigation.
And implemented this code to disable the "update cart" button:
table.cart td.actions input.button:nth-child(2){
    display: none !important;
}

But for some reason it did not help, can you tell me? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WP Panda, 2020-12-13
@whatislov

- bread crumbs in the product card

add_action( 'init', 'qna_remove_wc_breadcrumbs' );
function qna_remove_wc_breadcrumbs() {
    remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20);
}

- update cart button
Add this file https://github.com/woocommerce/woocommerce/blob/ma...
to the theme along the path woocommerce/cart/cart.php and delete the specified line in it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question