BLACK FRIDAY: 50% OFF all Pro plans Code: BLACKFRIDAY50
Pro from $10 a year or $30 lifetime, no code needed: Code: BLACKFRIDAY50
Ends Cyber Monday, 30 Nov. Lock in the price today. Code: BLACKFRIDAY50
Get 50% Off
Guide

AJAX Live Search Pro

How to set up and style the AJAX Live Search widget in Elementor.

AJAX Live Search lists matching posts, pages and products under the search box while the visitor types. Search by title, content, SKU, ID, custom fields or category names, add a category dropdown, and show it as a box, a dropdown, a popup window, a side panel or a full screen search.

Part of: Bright Addons Pro. Before you start: Nothing extra. WooCommerce is needed only if you want to search products.

Set it up

  1. Drag the AJAX Live Search widget onto the page or into your header template.

  2. In Search, choose the Layout and the Placeholder.

  3. Under Search In, choose the content types, and under Match, what to search by.

  4. Add a Category Dropdown if visitors should search inside one category.

  5. In Results, set Number of Results, Images, Product Price and Product SKU.

  6. Add Popular Searches and keep Recent Searches on.

  7. Style the search box, button and results in the Style tab.

Content options

Search

Option What it does
Layout Search box, icon that opens into a search box, icon with a box sliding down, icon that opens a search window, full screen search, or side panel.
Box Opens Towards Left or right for the expanding and sliding layouts.
Panel Opens From Left or right for the side panel.
Window Title Title of the popup window or side panel.
Placeholder Text in the empty search box.
Search In The content types to search, such as posts, pages and products.
Match Title, content, excerpt, product SKU, post or product ID, custom fields, and category and tag names. Best matches come first.
Custom Field Names Up to 10 field names, separated by commas. Hidden fields starting with _ are never searched.
Category Dropdown Lets visitors search inside one category, for example product categories.
All Categories Text Text of the first choice in the dropdown.
Search Button Icon, text, icon and text, or none.
Search Icon Label (screen readers) Names the icon button for assistive technology.

Results

Option What it does
Show Results While Typing Shows results under the box as the visitor types.
Number of Results How many results to show.
Start After (characters) How many letters before searching starts.
Images Shows a small image with each result.
Content Type Label Shows Post, Page or Product next to each result.
Excerpt Length (words) 0 hides the excerpt.
Product Price Shows prices of products.
Product SKU Shows the SKU of products.
Group by Content Type For example products, then posts, then pages.
All Results Link Link to the full results page. {count} becomes the number of matches.
No Results Text Shown when nothing matches.
Recent Searches Shown when the box is empty. Kept only in the visitor's own browser.
Popular Searches Words to suggest when the box is empty, separated by commas.
Bright Addons Pro

Unlock this and 96 more Pro widgets

One license gives you every Pro widget, all 10 extensions, the Theme Builder and priority support. From $10 a year, with a 14-day money-back guarantee.

Style options

These sections are in the Style tab.

  • Search Box

    width, height, typography, colors, border and shadow for normal and focus, placeholder color, border width, radius and text padding.

  • Search Button

    typography, icon size, colors, background, border, radius, shadow and padding of the button.

  • Search Icon and Full Screen

    style of the icon that opens the search, and the full screen background color.

  • Results

    background, border, shadow, radius and max height of the list, title and excerpt typography and colors, selected result background, highlight color, image size and accent color.

Tips

  • Only public content that the normal site search would show is listed. Products hidden from search in WooCommerce are left out.

  • With Show Results While Typing off, or when the script cannot run, the widget works as a normal WordPress search form.

  • The search settings are signed in the page, so visitors cannot change what is searched, such as private custom fields.

  • Searching custom fields is slower on large sites; list only the fields you need.

Questions and answers

Does it search WooCommerce products by SKU?

Yes. Add Product SKU under Match. A variation SKU finds its product.

Can it open as a popup or side panel?

Yes. Set Layout to the search window, full screen search or side panel.

Can visitors search inside one category?

Yes. Pick a taxonomy under Category Dropdown.

Does it show password protected posts?

No. Only published content is searched, and password protected posts are left out.

Need more help?

Check the troubleshooting guide, or contact support with the page address and what you expected to happen.

Troubleshooting guide
All guides