Filter blog posts or portfolio items
Last updated
Last updated
You can filter blog posts in the Divi blog module easily with the Divi Filter.
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).
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.
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.
You can get Divi Filter Premium by clicking here.
Unfortunately, pagination is not yet supported, so please set the Post Count to the max. You can also set it to 999.
Here you can find a demo: https://demos.danielvoelk.de/blog/