Search Divi Ajax Search Documentation

Search for answers or browse our knowledge base.

< All Topics

How to use

Follow the below instructions to use the Ajax Search module effectively.

Insert Module on Page

Content Options


  1. Search Field Placeholder: Here you can input the placeholder for the search field.
  2. Search Result Number: Here you can define how many number of search result should be displayed in search result. If you want to display all input the value -1.

3. Order by: Here we can set the order type of search results.

  1. Order: This setting allows you to specify the order in which the results are displayed. You can choose between ascending or descending order based on your preference.
  2. No Result Text: With this setting, you have the option to enter a custom text that will be displayed when no search results are found for a particular query. This allows you to provide a tailored message or suggestion to the users in such situations.

Search Area

  1. Search In: allows you to specify the areas within the post where the search query will be performed. There are six options available:
  • Title: If you select this option, the search query will be matched against the titles of the posts. Only posts with matching titles will be returned in the search results.
  • Content: By choosing this option, the search query will be matched against the content of the posts.
  • Excerpt: This option enables the search query to be matched against the excerpts of the posts.
  • Taxonomies: This option allows you to include taxonomies in the search. Taxonomies are ways to classify and organize content, such as categories or tags. By selecting this option, the search query will be matched against the taxonomies associated with the posts.
  • Product Attributes: If you’re dealing with an e-commerce or product-based website, this option allows you to search within the product attributes. Product attributes are characteristics or specifications of a product, such as size, color, or material. Enabling this option will include the search query matching against the product attributes in the search results.
  • Product SKU: SKU stands for Stock Keeping Unit and refers to a unique identifier assigned to a product. If you select this option, the search query will be matched against the SKUs of the products, and the relevant products will be included in the search results.

2. Post Types: This allows you to decide where to perform the search query user inputs. Options for where to perform a search are Posts, Pages, Projects, and Custom Post Types.

3. Exclude Post Types:

  • In this field, you can enter the slugs of post types that you want to exclude from the search functionality. These slugs should be separated by commas. By excluding certain post types, you can tailor the search results to fit the specific content you want to include or exclude.

4. Include Taxonomies:

  • Specify the taxonomies you want to include in the search. Taxonomies are a way of grouping things together. For example, in a blog, categories and tags are taxonomies. By including specific taxonomies, you can refine the search to look within certain categories or tags, depending on your requirements.

5. Exclude Taxonomies:

  • This field allows you to exclude certain taxonomies from the search. By excluding specific taxonomies, you can focus the search results on the content that matters most to you.

6. Exclude Post IDs:

  • Enter the post IDs that you want to exclude from the search results. This can be useful when you have specific posts that you don’t want to appear in the search output.


1. Layout:

  • There are three layout options available. Users can choose from these layouts to determine how the search results are visually presented on the page.

2. Show Search Icon:

  • When enabled, this option displays an icon next to the search box, providing a visual representation of the search action.

3. Show Clear Icon:

  • Enabling this option adds an icon to clear the search input, allowing users to easily remove the entered search query.

4. Display Fields:

  • Users can select which fields should be displayed in the search results. Options include Title, Excerpt, Featured Image, and Product Price.

5. Excerpt Length:

  • This setting allows users to control the length of the excerpt (a brief summary) displayed in the search results.

6. Enable “See All Results” Link:

  • When enabled, this option adds a link to view all search results. Clicking on this link will lead users to a dedicated page displaying comprehensive search results.

7. See All Results Link Text:

  • Users can customize the text that appears for the “See All Results” link.

8. Number of Columns:

  • Users can define the number of columns for the search results.

9. Column Spacing:

  • This setting allows users to control the spacing between columns.

10. Use Masonry:

  • Enabling the Masonry toggle utilizes a masonry layout for the search results.
  1. Show Pagination:
    • This option determines whether pagination controls are displayed. Pagination allows users to navigate through multiple pages of search results.
  2. Show Previous/Next Links:
    • Enabling this option displays “Previous” and “Next” links as part of the pagination controls. Users can use these links to move between different pages of search results.
  3. Next Link Text:
    • Users can customize the text that appears for the “Next” link in the pagination.
  4. Previous Link Text:
    • Similar to the “Next” link, users can customize the text that appears for the “Previous” link in the pagination.


This setting option gives you control to display or hide the scroll bar in search results.


Here, you can choose whether to open displayed results in the same tab or a new one.


  1. Search Result Box Background: This setting allows you to define the background color or image for the search result box. You can choose a solid color or upload a custom image to create the desired visual appearance for the search result box.
  2. Search Result Item Background: With this setting, you can specify the background color or image for search result items. This enables you to customize the look and feel of the search results, providing a unique and visually appealing design.

Design Options

  • Search Field:
    • This section includes options to style the appearance of the search field itself. Users can customize the background color, text color, border color, and more.
  • Search Icon:
    • Users can style the search icon, including its color and size.
  • Clear Icon:
    • Similar to the search icon, this section allows customization of the clear (close) icon that appears within the search field after a user has entered text.
  • Loader:
    • The loader refers to the animated icon or indicator that appears while search results are being fetched. Users can customize its color and size.
  • Search Result Item:
    • This option allows users to style the search item background, content padding, border style, and color.
  • Search Result Item Text:
    • Customize the text style for each item in the search results, including the title, excerpt, price and no result text.
  • Featured Image:
    • Style the appearance of the featured images, if applicable, within the search results. This includes settings for image size.
  • Pagination:
    • Style the pagination controls, including the appearance of the pagination container background color, previous/next links, and their respective colors.
  • See All Results Link:
    • Customize the styling of the “See All Results” link, if enabled. This link typically allows users to navigate to a dedicated search results page.
  • Spacing:
    • Customize the search result box padding.
Was this article helpful?
2 out Of 5 Stars

12 ratings

5 Stars 17%
4 Stars 8%
3 Stars 0%
2 Stars 8%
1 Stars 67%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Table of Contents