Remove code from cart drawer

Topic summary

Issue: A “free shipping” notice remained visible in the cart drawer after uninstalling a Shopify app on nattlig.no. The merchant wanted to remove the leftover code.

Initial guidance: A helper suggested hiding the banner via CSS by adding a rule in the theme’s CSS file (e.g., base.css/theme.css) to set .cart-notice.text-size–small to display: none. Screenshots were shared to illustrate the target element and expected result.

Clarification: The merchant noted the initial site reference was wrong and specified nattlig.no, describing the banner as a bar with two emojis in the cart slider.

Updated guidance: The helper advised adding code in theme.liquid before the tag via Online Store > Themes > Edit code > theme.liquid. (Exact code wasn’t shown in the excerpt.)

Outcome: The merchant thanked the helper, indicating the issue was resolved. No further questions or disagreements were raised.

Status: Resolved. Images/screenshots were central to identifying the banner element.

Summarized with AI on December 13. AI used: gpt-5.

Hey guys, I recently added an app that added a “you got free shipping” in the cart drawer. I removed the app and no longer offer free shipping, but the code is still thee, even though the app has been removed.

Can someone show me where I remove the code?

Here is the website link: nattlig.no

Here is an image:

1 Like

Hi @Nattlig

Do you mean this one?

If it is try this.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. 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-notice.text-size--small {
    display: none !important;
}

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

Hey that was the wrong website. Can you check it for www.nattlig.no?

It is the bar with to emojies in the cart slider.

Oh, check this one.

Add this one on the theme.liquid.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “theme. Liquid” file. Find the tag and paste the code below before the tag.

  • And Save.

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

1 Like

Thank you so much!