How to disable to remove button in Cart page please (Dawn)

Topic summary

A user seeks to disable the remove button on the Dawn theme’s cart page, initially requesting a JavaScript solution.

Proposed Solutions:

  • CSS approach: Add styling to theme.liquid (above </body> tag) or theme.css file to hide the remove button using display: none !important
  • Code snippets provided target the cart remove button element with CSS properties

Key Challenge:

  • The user reveals they need to temporarily disable the button due to a Shopify bug, then re-enable it after page load completes
  • The remove functionality appears to be implemented as a link rather than a traditional button element, complicating direct JavaScript disable=true approach

Current Status:

  • User questions whether click events can be removed and re-added via JavaScript after page load
  • Discussion remains open with no confirmed resolution for the dynamic enable/disable requirement
Summarized with AI on November 1. AI used: claude-sonnet-4-5-20250929.

Might I ask for the javascript to disable the remove item button in cart page for dawn theme please.

1 Like

Hey @zionlkc

Share your Store URL and Password if enabled.

Best Regards,

Moeed

Hi @Moeed https://a32e75-3b.myshopify.com/

1 Like

Hey @zionlkc

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

1 Like

It looks like to be that it’s not a button so I cannot simply use js to set the disable=true

Hi @Moeed , due to a shopify bug I have to “disable” it and reenable it after page load complete, so css is the only way?

1 Like

Even if I provide you a Javascript, it will still use css properties so the simpler way is to use CSS directly.

Best Regards,

Moeed

Hi @01tranali is it possible to remove the click event and add back after page load complete..?

Hello @zionlkc

Go to Online Store, then Theme, and select Edit Code.
Search for assets/theme.css Add the provided code at the end of the file.

.cart-item cart-remove-button {
display: none !important;
}