Shopify Horizon guide
How to hide the quantity selector in Shopify Horizon
What you’ll need
A duplicate of your theme to test on
How to get this: A duplicate of your theme to test on
- Online Store › Themes › … on your theme › Duplicate.
- Make the change on the copy, preview it, and publish only when it works.
The theme editor (to paste into Theme settings › Custom CSS; no code editing)
How to get this: The theme editor
- Online Store › Themes › Edit theme (on a copy of your theme if you want to test first).
- Add section or Add block › Custom Liquid, paste the code, then Save.
Steps
- Online Store › Themes › Customize on your Horizon theme (use … › Duplicate first if you want to try it on a copy).
- In the page menu at the top, pick Products › Default product (or the product template you use).
- In the left bar open Product information › Details › Buy buttons, and click the arrow next to Buy buttons to show its blocks.
- Hover over Quantity and click the eye icon (Hide block).
- Save.
Why there’s no Remove button
Quantity, Add to cart and Accelerated checkout are static blocks in Horizon’s Buy buttons. Shopify’s theme editor lets you hide a static block and change its settings, but not remove or move it: the row shows a lock instead of a drag handle.
In the cart
The cart page and cart drawer keep their own quantity buttons so customers can change or remove items. Hiding them leaves no way to fix a mistake before checkout, so leave them in place.