Product Filters - hide filters with a single value

Topic summary

A user seeks to hide product filters that display only a single option value, as these provide no filtering utility. The issue occurs on the Empire theme where filters like “Brand” appear even when only one brand is present in search results.

Technical Solution Provided:

  • Modify the facets.liquid file in the theme editor
  • Add a conditional check {% if filter.values.size > 1 %} around the filter display code
  • This ensures filters only render when multiple values exist

Code Structure:
The solution involves wrapping the 'boolean' and 'list' filter cases with a size check, preventing single-option filters from displaying while preserving multi-option filters.

Status:
Multiple users offered to provide specific guidance if the original poster shares their facets.liquid code. Some responses misunderstood the request as wanting to remove filters entirely rather than conditionally hiding them. The discussion remains open with the technical approach identified but not yet confirmed as implemented.

Summarized with AI on October 29. AI used: claude-sonnet-4-5-20250929.

In the Search & Discovery app, find the Filters, select Brand, and delete it.