WooCommerce Range Slider Filter for Screen Size
A WooCommerce range slider filter helps shoppers narrow numeric product data to a useful interval. In the electronics demo, shoppers can compare screen size without scanning every device. Drag the slider in inches, where a 0.1 step gives precise control over the minimum and maximum.
Try this: Drag the screen-size slider to a narrow range and watch the list shrink.
How this demo is configured
- Create a filter by Screen size (inches) (custom field _mfp_screen_in). Show as Range slider. Slider step: 0.1.
Showing 13–24 of 36 results
-
Sale
Add to cart
JBL Tune 770NC
Original price was: $129.00.$99.00Current price is: $99.00. -
Add to cart
Microsoft Surface Pro 11
$1,199.00 -
Add to cart
Lenovo Tab P12
$349.00 -
Sale
Add to cart
Sony WH-1000XM5
Original price was: $399.00.$329.00Current price is: $329.00. -
Add to cart
Bose QuietComfort Ultra
$429.00 -
Add to cart
OnePlus 12
$799.00 -
Add to cart
Nothing Phone (2a)
$349.00 -
Add to cart
iPad Air 11" (M2)
$599.00 -
Add to cart
iPad Pro 13" (M4)
$1,299.00 -
Sale
Read more
Samsung Galaxy Tab S9
Original price was: $799.00.$649.00Current price is: $649.00. -
Add to cart
iPhone 15 Pro Max
$1,199.00 -
Sale
Read more
Samsung Galaxy S24
Original price was: $799.00.$699.00Current price is: $699.00.
What the screen-size slider filters
The range uses the numeric screen-size field attached to each product. The lower and upper values define an inclusive interval: products must meet the minimum when one is set and stay at or below the maximum when one is set.
The demo labels screen size in inches. Its step is 0.1, so the slider can represent decimal values instead of whole inches only.
When to use a numeric range
Use a range for comparable numeric data such as dimensions, battery life, or price. It lets shoppers express a lower bound, an upper bound, or both. A taxonomy list is a better fit when the choices are named categories rather than measured values.
Before adding the control, make sure the products have numeric values under the same custom field key. Text labels such as “large” need a taxonomy or a separate mapping.
Set up a numeric range slider
- In Filter Sets → Add New, choose Products for Content to filter.
- Add a filter row and choose Custom field (number) under What are you filtering?.
- Enter the exact Custom field key used by your product data, then set a shopper-facing label such as Screen size (inches).
- Choose Range / Slider under How shoppers choose. Keep Show range slider enabled and set Step size (range only) to the precision your values use.