Stack Squarespace shop categories/filters on mobile view
If you're using Squarespace and want to improve your online store’s mobile experience, you may have noticed that the shop categories or filters display in a single horizontal row. This can make navigation tricky for customers on smaller screens. A simple CSS tweak can help you stack these categories neatly for better usability.
Log in to your Squarespace website.
Go to Website Editor > Design.
Click on Custom CSS.
Copy and paste the following code snippet into the Custom CSS box:
@media screen and (max-width: 575px) {
.products.collection-content-wrapper .nested-category-children {
flex-wrap: wrap;
justify-content: center;
}
}
What this code does
Targets the shop category/filter section in Squarespace’s shop pages.
Applies the changes only on screens 575px wide or smaller (mobile view).
Uses
flex-wrap: wrap;to allow category items to stack instead of staying in a single row.Centers the items using
justify-content: center;for a clean look.
Learn how to display only four related products in a single row on your Squarespace Commerce site using a quick CSS solution
Learn how to apply irregular, organic image frames in Squarespace with a simple CSS snippet. Enhance your site's aesthetic with custom shapes.
Optimise your Squarespace shop for mobile: use custom CSS to stack categories and filters for a cleaner, more user-friendly experience.
Optimise your Squarespace masonry gallery for mobile: apply custom CSS to display images in a single column, improving navigation and aesthetics