Help Center

How to Customize the Content Shown in the Search Results

How to Customize the Content Shown in the Search Results

Read how to manage the appearance of the search results returned by the JetSearch plugin.

Before you start, check the tutorial requirements:

  • Elementor (Free version) or Block editor (Gutenberg);

  • JetSearch plugin installed and activated.

Adjusting the Search Results Content in Elementor

Open the page where you added the AJAX search widget with the Elementor editor.

page with ajax search

Select the AJAX Search widget and proceed to the Content tab. Unfold the Results Area section.

results area section

Now we are going to explore each option in detail.

Options for Customization

Firstly, you can set the Results Area Width and choose one of three available options:

  • “by Search Form”;
  • “by Input Box and Categories List”;
  • “Custom.”
results area width

When set to “by Search Form,” the results area width will correspond to the widget’s general width.

results area width by search form

If the second option, “by Input Box and Categories List,” is selected, the results area width will cover only the width of the input box.

results area width by input box and categories list

Moreover, you will be able to set a custom width by selecting the last option and entering the needed number into the Custom Width box.

In this case, Custom Position can be changed to left, right, or center.

custom width

If your posts or items have thumbnails, you can turn on the Show Post Thumbnail option and select Thumbnail Size.

Thumbnail Placeholder allows you to set a universal picture that will be used when the product or post thumbnail is absent or not selected.

thumbnail placeholder

There is a short description under the post or product title that you can easily customize.

description of the product in the search results

The Post Content Source option allows you to select the kind of data to be displayed there.

It can be set to “Post Content,” “Post Excerpt,” or “Custom Field.”

post content source

Post Content Length limits the number of words of the post content.

Set it to 0 to hide the content.

post content length

Turn on the Show Product Price and Show Product Rating toggles if you want to display such data in the search results.

show product price and rating class

To display the total number of results, enable Show Results Counter.

Results Counter Text is for changing the text next to the total number of results.

results counter and text

Moreover, you can enable the Show All Results Button and set its text.

show all results button

By default, if the user hits the “See all results” button, the page with the search bar will be refreshed, and all results will be displayed.

However, you can enable the Open Results in New Tab option. This way, the rest of the results will be opened in a new tab.

Setting the Navigation

In the Results Navigation block, you have an opportunity to choose the essential navigation type.

The results box can contain Bullet Pagination, Number Pagination, and Navigation Arrows.

You can set it to “Hide,” “Show in header,” “Show in footer,” or “Show in header and footer” among the display options for each element.

results navigation

Please note that if you select Navigation Arrows, you can choose the type of navigation arrows from the drop-down list.

Styling Results Area

The AJAX Search widget has many styling options to customize each content element.

You can set the background color, enable scrolling for the results list and adjust paddings for the header and footer of the search results area.

styling the search results area

How to Change the Search Results Content in Gutenberg

JetSearch works not only with the Elementor page builder. This plugin allows applying a Search block using Gutenberg as well.

Open the page in the default WordPress editor. Click on the “Add block” button and find the AJAX Search block.

search block

Unfold the Results Area section to customize the content of the search results.

results area of the AJAX search block

The AJAX Search block for Gutenberg has the same settings as the AJAX Search widget for Elementor described above.

There are options to customize Results Area Width, Results Counter Text, Navigation Arrows Type, and so on.

AJAX search block settings

You can style the AJAX Search block with the help of the JetStyleManager plugin.

Click on the “Block Style” button in the upper right corner of the editing window.

styling AJAX search block

Unfold the Results Area and Results Items sections and style up the search results elements according to your needs.

results area styling

After completing all customizations, click the “Update” button and preview your search results.

Now you know how to change and style up the search results content with the help 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.