Search Results Customization

In WordPress, the Search results page is an archive page that shows results according to the search query. Impreza uses the default WordPress search engine, which searches for matches only inside:

  • post title
  • post content
  • post excerpt

For searching by taxonomies and custom fields we recommend to use the Relevanssi plugin. It works with Impreza out of the box.

You can enter a search query via the Search element available in Live Builder, WPBakery, and inside the header when you edit it.

Live examples: Example 1, Example 2, Example 3.

By default, the search results page shows results using a pre-designed layout. You can apply or change this layout at Theme Options > Pages Layout > Search Results.

All post types (except products) are using the same search results page. There's no way to have different search results pages for different post type.

The Products Search Results Page can be customized via the Shop settings.

How to Customize the Search Results Page #

Create a new page at Pages and include a Post List set up to show "Posts of the current query."

You can customize the Grid Layout and other Appearance settings that it will use to show search results.

After this, assign this custom search results page at Theme Options > Pages Layout > Search Restuls.

How to Exclude Post Types from Search Results #

Go to Theme Options > Pages Layout and use the relevant checkboxes to "Exclude from Search Results".

How to search by taxonomies and custom fields #

Install the free Relevanssi plugin. It works with Impreza out of the box and allows to search by:

  • taxonomies (categories, tags, brands, product attributes, etc.)
  • custom fields (price, SKU, etc.)
  • comments and product reviews
  • post authors

Also, that plugin allows to customize and modify the search engine with many options. Check the documentation to learn more.

How to search within specified post type(s) #

When you edit the Search element in the Header or within the content, the "Search specific post type" settings let you target search results to a specified post type via relevant checkboxes.  

This option is unique for every Search element. You can use multiple Search elements with different post-specific presets if needed. 

Note that this option doesn't override the global settings at Theme Options > Pages Layout > Exclude from Search Results.

Thus, if you use the Search to include the post type excluded in Theme Options, this post type won't show among the search results.