A collection of Liquid, CSS, and JavaScript snippets for resolving common Shopify theme issues. Drop-in solutions for frequent client requests.
fixes/liquid/mobile-menu-fix.liquid— Fix hamburger menu not closing on navigationfixes/liquid/variant-selector-fix.liquid— Fix variant dropdowns not updating price/image
fixes/js/cart-drawer-fix.js— Fix cart drawer not updating after add-to-cartfixes/js/announcement-bar-dismiss.js— Persistent dismiss for announcement bars
fixes/css/product-grid-responsive.css— Responsive product grid for all screen sizesfixes/css/checkout-mobile-fix.css— Fix checkout layout on mobile devices
Add to your theme via Online Store → Themes → Edit Code. Include snippets in your theme.liquid or relevant section files:
{% render 'mobile-menu-fix' %}Add via theme.liquid before </body> or through a custom asset:
<script src="{{ 'cart-drawer-fix.js' | asset_url }}" defer></script>Add via Online Store → Themes → Edit Code → Assets or through the theme customizer's Custom CSS field.
- Shopify OS 2.0 themes (Dawn, Sense, Craft, etc.)
- Older vintage themes (Debut, Brooklyn, Narrative)
- Custom themes
MIT