Filter blog posts or portfolio items

You can filter blog posts in the Divi blog module easily with the Divi Filter.

Buttons

Step 1:

Click on the grey gear icon to access the Button Settings (on the button, that you want to filter with). You can also use images, or any other element to trigger the filtering. It doesn’t have to be a button module.

Step 2:

Go to Advanced β†’ CSS ID & Classes β†’ CSS Class. Here you add the df-button class.

Step 3:

Additionally add any category that you want to filter with that button like that: dfc-[blog-post-category]

The category is the category of the blog post.

For example:

The category "Lifestyle" would be dfc-lifestyle. Everything in lower cases.

Buttons have to be in a separate section, than your filterable elements. Or you add the df-buttons class to your button row (Premium features).

Section

Step 1:

Click on blue gear icon to access the Section Settings.

Step 2:

Go to Advanced β†’ CSS ID & Classes β†’ CSS Class. Here you add the df-area df-post class.

Portfolio items (Premium)

If you want to filter portfolio items, you just have to change the blog module from posts to portfolio items. Filtering portfolio items requires a Premium license.

Pagination

Unfortunately, pagination is not yet supported, so please set the Post Count to the max. You can also set it to 999.

You can get Divi Filter Premium by clicking here.

Video tutorial

Demo

Here you can find a demo: https://demos.danielvoelk.de/blog/

Last updated