Help Center
How to Set a Listing Template for Live Search Results Area

How to Set a Listing Template for Live Search Results Area

Learn how to use a custom listing template to make the Live results area of ​​the Ajax Search widget more stylish and user-friendly.

Before you start, check the tutorial requirements:

  • Elementor (Free version), Block Editor (Gutenberg), or the Bricks theme

  • JetSearch plugin installed and activated

  • JetEngine plugin installed and activated with a Custom Post Type listing created,

    If you have not done it yet, please read the tutorial

Add the Ajax Search Widget to a Page

Create a page in Elementor, Block Editor, or the Bricks theme. For instance, in this tutorial, we use Elementor. 

Find the Ajax Search widget and drop it onto the page.

ajax search widget

Learn more about this settings tab in the AJAX Search Form Overview tutorial.

Select the Listing in the Ajax Search Widget’s Settings

Unroll the Search Query tab of the Content settings.

The tutorial AJAX Search Query Overview explains how to manage this tab.

Navigate to the Source field and specify the needed source for the search (in this case, we added the “Properties” Custom Post Type, which was used to build the listing and will be displayed in the results area). 

The following tutorial details How to Set the Source in AJAX Search in the Ajax Search widget.

setting a source to the search

Unroll the Results Area settings of the Ajax Search widget.

In the Listing drop-down list, select the needed listing (this listing should have the same source as the one selected in the Source field of the Search Query tab).

adding custom listing to the ajax search results area

If needed, customize the search results area. You can also learn how to manage these settings from the AJAX Search Results Area tutorial.

Press the “Publish/Update” button to save the page.

Check the Front-End View of the Custom Listing 

Navigate to the front end to see how the widget displays the listing in the live search results area.

front end of custom listing in results area

In contrast, if the listing is not selected in the Listing drop-down list, the widget displays only data specified in settings (such as post thumbnails, post titles, and post contents) in the search results area.

front end of results area without the listing


That’s all about adding the custom listing template to the live results area of ​​the Ajax Search widget of the JetSearch plugin.

Was this article helpful?
YesNo

Need help?

Ask Facebook community

Get answers from 22K Crocoblock Community experts from all over the world.

Start a live chat

Ask question to support agent and share its details via chat messages.