Never mind. There’s an additional section that needs to be updated for boolean or List type filters. It’s the same change as indicated above by Joseph123123, but it’s on line 136.
Topic summary
Problem: Users want all collection page filters expanded by default on the Empire theme, instead of just the first filter being open.
Attempted Solutions:
- Requires code modifications to collection files and CSS to display filters as block elements
- Original poster couldn’t find working solutions and eventually switched to Enterprise theme (which had expanded filters built-in)
- Another user purchased Empire but experienced slow support response times
Working Solution (Dawn Theme):
- Add “open” attribute to the “Details” element in
snippets/facets.liquid - Modify line 371: change the condition from
forloop.index == 1to expand all filters - For boolean/List type filters, apply the same change on line 136
- Works with Search & Discovery app
Alternative (No-Code):
- In theme Customizer, navigate to Collections → Default collection
- Open Filters settings in left sidebar
- Select “Expand all groups” under Filter visibility
Note: The working code solution is specifically for Dawn theme; Empire theme implementation remains unresolved in this thread.
2 Likes