Filter Controls.

A control is how one filter looks and behaves. Each filter in a panel can use a different control.

Classic styles

ControlLooks likeBest for
ChipsRounded buttons you can selectShort lists, modern shops
CheckboxesA list with tick boxesLong lists, multi-select
Radio buttonsA list where one choice is activeSingle choice
Toggle switchesOn/off switchesYes/no style options
Hierarchical treeIndented parent and child categoriesCategories only

Rich controls

ControlWhere it appliesWhat it shows
SwatchesAttributes with colours or imagesRound colour or image dots
Size buttonsSize-like attributesSquare buttons sorted XS to XXL, then numbers
Stepper (N+)Numeric attributes such as bedroomsAny | 1+ | 2+ | 3+ segments
Price sliderPriceTwo-handle slider with a histogram of how many products sit at each price
Range chipsPriceReady-made price ranges
Star rowsRating"4 stars & up" rows

Smart suggestions

ModeFilter Pro only offers a control where your data supports it:

  • Swatches are offered for product attributes whose terms have a colour or image, or have recognisable colour names or hex codes. Categories, tags and brands never get swatches.
  • Size buttons appear for attributes named like a size or whose terms look like sizes.
  • Stepper appears for attributes whose terms are mostly numbers.
  • Hierarchical is only for categories.

If a control is not available, the builder explains why and the storefront falls back to the default style.

Auto mode

By default filter_controls="auto". ModeFilter Pro picks swatches for colour attributes, size buttons for size attributes, a stepper for numeric ones, a slider for price and stars for rating. To keep the old chip look, use filter_controls="none".

Choose a control per filter

[modep_filters filter_controls="auto,categories:checkboxes,rating:chips,pa_color:swatches"]

Write filter:control pairs separated by commas. Filters are categories, tags, brands, price, rating or an attribute such as pa_color. Add auto to let other filters choose for themselves.

Set up swatch colours

  1. Go to Products → Attributes and open Configure terms for your colour attribute.
  2. Edit a term. Pick a swatch colour or choose an image.
  3. Save. The filter shows the swatch.

Terms with no colour set still work when the name is a common colour (such as Black, Navy or Red) or a hex code (such as #ff6600).

  • Live counts (show_counts) show how many products each option would return. Counts update as other filters change.
  • Search in filter (filter_search) adds a search box to long lists. auto shows it on lists with many options.
  • Applied filter chips (applied_bar) show removable chips above the grid and a Clear all link.

Placements

ValueResult
left, rightSidebar next to the grid. A Filters button opens a drawer on small screens
topHorizontal bar above the grid
pillsA row of pill buttons. Each opens a small pop-over
drawerA Filters button that opens a slide-in drawer on every screen size