How To Build A Product Search Text Filter - Demo

Written by the Divi Engine Documentation Team

Introduction

Follow these steps to build the Search Text Filter on our demo site. Click HERE to see the Demo page.

Preview

Description

How to create the Search Text Filter on our demo website.

Difficulty

Easy.

Time

15 Minutes.

Step 1: Set It Up - Filter Post Module

Add the Filter Posts Module alongside your Archive Loop Module on the page, post or template of your choice.

1.) Add the Filter Posts Module.

Step 2: Set It Up - New Search Filter Item

Inside the Filter Post Module, you will see the ability to add a new Filter Item. Add one and name it "Search" in the Admin Filter Name field.

2.) Add a new Filter Item naming it, "Search."

Step 3: Customize Our Settings - Filter Post Module

Customize the Main Options of the Main Settings in the Filter Post Module. Below are the important settings to follow to get the style of the Search Text Filter in the Ajax Filter Demo page shown at the beginning of this tutorial. For more information on this module, please visit our documentation to your left.

1.) Change Filter Update Type to, "Update after each field change."

Step 4: Customize Our Settings - New Search Filter Item

Customize your new Search Text Filter item. Below are the important settings to follow to get the style of the Search Text Filter in the Ajax Filter Demo page shown at the beginning of this tutorial. For more information on this module, please visit our documentation to your left.

1.) Set the Admin Filter Name to, "Search."
2.) Search by, "Search Text."
3.) Select "Products" from the Post Type dropdown.

4.) In the Text Filter Options set the Placeholder Text to be "Search Product."

Step 5: Add Custom Code

No custom code here.

Step 6: Conclusion

Save and view your new Ajax Search Text Filter from the frontend.

More Support?

Please email us at [email protected] if you are unable to get Divi Ajax Filter working.


Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.