Filterable Gallery: The Filter Bar
Add category buttons above the gallery so visitors can narrow it without a page reload, and share the filtered view.
A Divi filterable gallery lets a visitor click a category and see only those items, with no page reload. It works with all three layouts.
Turn It On#
- Open Content → Filter Bar.
- Turn on Enable Category Filter.
- Choose a Filter Bar Style and a Filter Bar Position, above or below the gallery.
The buttons come from the categories of the items in the gallery, so a new category adds its own button.
A gallery with its category filter bar.
Choose a Style#
| Style | Looks like | Good for |
|---|---|---|
| Pills | Rounded buttons | Most designs |
| Tabs | Text with an underline on the active one | Editorial layouts |
| Buttons | Square buttons | Plainer designs |
| Dropdown | A compact select menu | Many categories, or narrow spaces |
Other Options#
- Hide "All" Button: remove the All button and start on the first category.
- "All" Button Label: rename it, for example to "Everything".
- Sticky Filter Bar: keep the bar in view while a visitor scrolls a long gallery.
Save the Filter in the URL#
Turn on Save Filter in URL and the address changes to include the choice, such as ?hdg_cat=branding. Visitors can then bookmark or share that exact view, and you can link to it from a menu.
The chosen filter is in the address bar.
Style It#
On the Design tab, Filter Bar Settings has alignment, gap, height and padding, and colors for the normal, hover and active states. It also has settings for the tab underline, the dropdown and the sticky bar background.
For a full project, read how to build a filterable portfolio.

