A large exclamation mark unexpectedly appeared in a Shopify store’s cart page. The issue is visible in Microsoft Edge but disappears when Chrome’s developer console is opened.
Two solutions were provided:
Theme.liquid modification (marked as accepted): Add specific code above the </head> tag in the theme.liquid file
CSS override: Add .cart-item__error {display: none !important;} to base.css to hide the error element
Current status: The original poster confirmed the first solution worked. However, a follow-up question emerged about the exclamation mark reappearing on the second item when multiple products are in the cart, suggesting the issue may not be fully resolved for all scenarios. The root cause of why the error displays remains unclear.
Summarized with AI on November 15.
AI used: claude-sonnet-4-5-20250929.
This massive exclamation mark has appeared out of nowhere. Everything was working fine and then I spotted this, I’m not sure whether any changes I’ve made caused it to happen. I tried to figure out how to fix it myself using the dev console and researching but I can’t figure it out, if someone could please help.
Bear in mind when I open Chrome’s dev console the exclamation mark goes invisible. The screenshot is from Edge.