[Resolved] Remove “View Cart” after I press “Add to cart”

Home Forums Support [Resolved] Remove “View Cart” after I press “Add to cart”

Home Forums Support Remove “View Cart” after I press “Add to cart”

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1541364
    Jerry

    Hi guys, after I press “add to cart” on the shop page, a new “link” text appears (View Cart) next to the Add to Cart button.

    How do I disable that “View Cart” part?

    Thank you!

    #1541441
    Elvin
    Staff
    Customer Support

    Hi,

    This functionality is hardcoded (js) within WooCommerce.

    While we can’t completely remove it from the DOM structure as that will require editing of plugin files, we can remove it from display by adding this CSS:

    a.added_to_cart.wc-forward {
        display: none;
    }

    Here’s how to add CSS. https://docs.generatepress.com/article/adding-css/

    A wise man once said:
    "Have you cleared your cache?"

    #1541584
    Jerry

    Worked great, thank you!

    #1541590
    Elvin
    Staff
    Customer Support

    Nice one. No problem. 🙂

    A wise man once said:
    "Have you cleared your cache?"

    #1630937
    nayeli parra

    does it work if i paste it at my GP customizing css?

    #1631219
    David
    Staff
    Customer Support

    Hi there,

    you can add it to the Customizer > Additional CSS.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.