Main Issue:
Users want to hide or remove the shopping cart button from their Shopify store, particularly during early brand-building phases when e-commerce functionality isn’t needed yet.
Mobile-specific visibility: Multiple users (Alif09, shoelgaard) report the cart button persists on mobile view despite working on desktop/tablet
Media query conflicts: One user discovered their CSS was caught by a desktop media query, limiting effectiveness to desktop screens only
Partial resolution: Shoelgaard fixed their issue by moving the CSS code to the bottom of base.css after the last curly bracket, avoiding media query conflicts
Unresolved cases: Alif09 (using Minimal theme) still experiencing issues even after trying suggested fixes, including placing code in theme.scss.liquid
Status: Discussion remains open with mobile display issues unresolved for some users.
Summarized with AI on November 11.
AI used: claude-sonnet-4-5-20250929.
We know that shopify can quickly build a cross-border e-commerce website, which is its main application scenario. But in fact, shopify’s website building function is also very powerful, no matter in terms of design, typesetting, mobile and desktop adaptation, etc., it is very convenient.
How to hide or remove the shopping cart button when our website is in the early stage of brand building and does not need the online shopping function temporarily? Here is a workaround:
Enter the source code editing interface, select “Section”, open “header.liquid”, find the following code, and mark it as “Comment”, namely: . Note here, it is not recommended to delete the code, so that it can be restored later.
Please can you help with removing the cart button from mobile view. It doesn’t display on tablet or desktop only on mobile. I have added all the codes I could find from other forums to try solve this, but still no luck.
Hi there, glad it worked it out for you! Thanks for sharing your solution. It doesn’t seem to be my problem for some reason, I checked and unfortunately I’m still having the same issue
Try to put the code in the top of the file, instead of the bottom. If that fixes it, I think you might have pasted the code before the last curly bracket.