Remove summary from buy button on cart drawer

Topic summary

A user working with Focal theme 10.3.1 wants to remove summary text from the buy button in the cart drawer.

Two solutions were provided:

  1. JavaScript approach: Add custom code to the theme.liquid file, placing it above the closing </body> tag to hide the unwanted elements.

  2. CSS approach: Add display:none styling to the base.css, style.css, or theme.css file targeting specific cart elements:

    • .cart-mini-reward#cart .cart-mini-reward#cart span.dopac-cnys-subtotal
    • .cart-mini-reward#cart span.square-separator

Both solutions include screenshots showing the expected result. The discussion appears resolved with working solutions offered, though the original post and some code snippets contain garbled text that makes exact technical details partially unclear.

Summarized with AI on November 14. AI used: claude-sonnet-4-5-20250929.

Hello dear community,

I’m using the focal theme 10.3.1 and I want to remove some text from the buy button in the cart drawer. I think it needs to be coded. Can anyone help? I attached a photo for reference.

1 Like

Hey @LeyDE

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

HI @LeyDE

Check this one.

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
cart-drawer#mini-cart span.docapp-sync-subtotal, cart-drawer#mini-cart span.square-separator {
    display: none !important;
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!