The WooCommerce filter field guide
Styling Guide.
Change colours, fonts, corners, shadows, image shape and pagination style in ModeFilter Pro, globally or for a single filter, with no custom CSS.
Everything about the look of ModeFilter Pro can be set in the Visual Filter Builder. Nothing needs custom CSS. A setting you leave empty keeps the template’s design.
Global and local styles
- Global: applies to every filter (Filter colors and type).
- Local: select a filter, then open Style this filter. Local settings win over global ones.
Filter style options
| Option | Attribute (global) | Local key |
|---|---|---|
| Background | fs_bg | bg |
| Text color | fs_text | text |
| Title color | fs_title | title |
| Border color | fs_border | border |
| Option background, text, border | fs_chip_bg, fs_chip_text, fs_chip_border | chip_bg, chip_text, chip_border |
| Selected background and text | fs_sel_bg, fs_sel_text | sel_bg, sel_text |
| Show more button: background, text, border | fs_more_bg, fs_more_text, fs_more_border | more_bg, more_text, more_border |
| Font | fs_font | font |
| Text size, title size (px) | fs_size, fs_title_size | size, title_size |
| Text weight | fs_weight | weight |
| Corner radius, padding (px) | fs_radius, fs_pad | radius, pad |
Local values go in one attribute, written as filter.key=value and separated by semicolons:
[modep_filters fs_sel_bg="#0f1b2d" filter_styles="categories.bg=#f4f2ec;pa_color.sel_bg=#d9ff43"]
Filter panel
panel_bg, panel_border, panel_radius, panel_pad, box_gap (space between filters), toggle_bg and toggle_text (the Filters button on small screens).
Product grid
| Option | Attribute |
|---|---|
| Grid background, space between cards | g_bg, g_gap |
| Card background, text, border color | g_card_bg, g_card_text, g_card_border |
| Border width, corners, padding | g_border_w, g_radius, g_pad |
| Shadow: none, soft, medium, strong | g_shadow |
| Image shape: square, portrait, tall, wide | g_ratio |
| Hover: none, zoom | g_hover |
| Text alignment: left, center, right | g_align |
| Card font | g_font |
| Title color, size, weight | g_title_color, g_title_size, g_title_weight |
| Price color, size, weight | g_price_color, g_price_size, g_price_weight |
| Button background, text, corners | g_btn_bg, g_btn_text, g_btn_radius |
Pagination
Choose the type with pagination: load_more, numbers, infinite or none.
| Option | Attribute |
|---|---|
| Placement: left, center, right | pg_align |
| Button size: auto, block (full width), fixed | pg_size, pg_width (px, for fixed) |
| Distance from grid, space below, gap between buttons | pg_top, pg_bottom, pg_gap |
| Button background, text, border | pg_bg, pg_text, pg_border |
| Active page background and text | pg_active_bg, pg_active_text |
| Corners, font, text size, weight | pg_radius, pg_font, pg_fsize, pg_weight |
| Padding (vertical, horizontal) | pg_pad_y, pg_pad_x |
Fonts are chosen from a safe list: system, serif, mono, rounded, display. Leave empty to inherit your theme font.
Accepted values
- Colours: hex codes such as
#1a2b3c, ortransparent. - Sizes: whole numbers in pixels. Out-of-range numbers are adjusted to the nearest allowed value.
- Invalid values are ignored, so a typo can never break your page.
Why !important? Style choices you set explicitly are written so that theme styles cannot undo them. Choices you leave empty never add any CSS.
