Christmas Sale

30% off HappyDivi plugins

Gallery, Form Pro and Liven, until December 31.

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.

Updated · HappyDivi Gallery 1.0.23

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#

  1. Open Content → Filter Bar.
  2. Turn on Enable Category Filter.
  3. 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.

Lazy Loading settings in the Divi Visual Builder beside a gallery with a category filter bar

A gallery with its category filter bar.

Choose a Style#

StyleLooks likeGood for
PillsRounded buttonsMost designs
TabsText with an underline on the active oneEditorial layouts
ButtonsSquare buttonsPlainer designs
DropdownA compact select menuMany 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.

Filter Bar settings with Save Filter in URL on, beside a portfolio filtered to Branding with hdg_cat=branding in the address bar

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.