On this page
What this issue is
Autocomplete (also called predictive search or search suggestions) is the dropdown that appears under a search box while someone types. It usually lists matching products, categories or popular queries. Behind it, your page sends a small request to a search service as the visitor types and draws the reply as a list.
It is broken when the dropdown never opens, opens empty, shows results that do not match, lags badly, hides behind other page elements or cannot be selected with a click, tap or keyboard. Plain search often still works, which is why this goes unnoticed.
Why it costs you leads or sales
Suggestions help visitors reach a product or page in one or two taps, especially on mobile. Without them, people must type the full term, spell it right and press enter. Some will give up or leave, and typos that suggestions would have fixed now lead to a no-results page.
The impact is usually low compared with a broken checkout, because the main search still works. It matters most on large catalogues and on sites where search users buy more often than browsers.
- Click search boxVisitor starts typing
- Suggestions requestScript errors or request fails
- Pick a suggestionNo dropdown to choose from
- Product pageSome visitors never arrive
The visitor can still submit a full search, but the shortcut step is gone.
Example: illustrative numbers only, showing how losing suggestions could reduce the share of searchers who reach a product page.
How to check if your site has it
Test on desktop and mobile
Click into the search box and type three or more letters of a real product name. Repeat on a phone, since mobile themes often use a different search component.
Open the Console
Press F12 (or Cmd+Option+I on Mac), choose Console and type again. Red errors that appear as you type point to a script problem.
Open the Network tab
Filter by Fetch/XHR and type in the box. You should see a request per keystroke or pause. Note its status: 200 is fine, 403, 404, 429 or 500 is not.
Check the response
Click the request and open Preview. An empty list for a term you know exists suggests an index problem, not a display problem.
Try keyboard and click
Use the arrow keys and Enter, then click a suggestion. A dropdown that shows but ignores clicks is often covered by another element.
| Symptom | Likely cause |
|---|---|
| No dropdown, red error in Console | JavaScript error from theme, app or another script |
| Request returns 403/404/500 | Endpoint blocked, renamed or failing |
| Request is 200 but list is empty | Stale or incomplete search index |
| Dropdown flashes then disappears | Script conflict or blur handler closing it |
| Dropdown visible but not clickable | Another element overlaps it (z-index) |
| Works on desktop, not on mobile | Different mobile search component |
How to fix it
Start with the cause you found above. Make changes on a staging copy or duplicate theme when you can, and note what you change.
Check predictive search is on
Many themes have a predictive search setting under Online Store > Themes > Customize > Theme settings > Search (the name varies by theme). Make sure it is enabled.
Disable search apps one by one
If you use a search app, turn off its app embed under Customize > App embeds to see whether the theme's own suggestions return.
Check for theme errors
Compare against a fresh copy of your theme. If the copy works, a custom edit or leftover app code in theme files is the cause.
Test for a plugin conflict
Temporarily deactivate other plugins and switch to a default theme on staging. If suggestions return, reactivate plugins one at a time.
Check the AJAX endpoint
Many search plugins call admin-ajax.php or the REST API. Security plugins, firewalls or caching rules can block these. Allow them for the search action.
Rebuild the index
If your search plugin (for example a WooCommerce or index-based search plugin) has an index, rebuild it in its settings.
Check what powers search
Webflow's built-in site search does not offer a typeahead dropdown by default, so suggestions come from custom code or an app. Check the code embeds and the app's own dashboard.
Check the published site
Scripts may work in the Designer preview but fail on the live domain. Test on the published URL.
Check the Wix Site Search settings
In the editor, select the search box and review its settings. Remove and re-add it if suggestions never appear.
Remove conflicting custom code
Check custom code under Settings and any Velo code touching the search box.
Check Code Injection
Open Settings > Advanced > Code Injection and remove recent scripts to see whether suggestions return. Squarespace's built-in search is a results page, so suggestions usually come from custom code.
Fix the request
Make sure the endpoint URL is right, allowed by CORS and your firewall, and returns JSON in the shape your script expects.
Add error handling and a debounce
Wait briefly after typing before sending the request, and show a fallback when it fails. See the snippet below.
Fix layering
Give the dropdown a higher z-index than the header and page content.
const input = document.querySelector('#search');
const list = document.querySelector('#suggestions');
let timer;
input.addEventListener('input', () => {
clearTimeout(timer);
const q = input.value.trim();
if (q.length < 2) { list.hidden = true; return; }
timer = setTimeout(async () => {
try {
const res = await fetch('/search/suggest?q=' + encodeURIComponent(q));
if (!res.ok) throw new Error(res.status);
const items = await res.json();
list.innerHTML = items.map(i => '<li><a href="' + i.url + '">' + i.title + '</a></li>').join('');
list.hidden = items.length === 0;
} catch (e) {
list.hidden = true; // plain search still works on Enter
console.error('Suggestions failed', e);
}
}, 200);
});How to confirm it's fixed
- Suggestions appear within about a second of typing three letters
- The Console shows no red errors while typing
- The suggestions request returns 200 with a non-empty list
- Clicking and keyboard selection both open the right page
- It works on desktop, iPhone and Android browsers
- Pressing Enter without choosing a suggestion still shows results
How to prevent it happening again
- Test the search box after every theme, plugin or app update
- Re-test after changes to firewall, caching or CDN rules
- Rebuild the search index after bulk product imports
- Keep a short list of five known search terms to test each time
- Review your search app's error log or dashboard monthly
How FunnelGuard handles this
FunnelGuard does not check search autocomplete today. It is a possible future check, not a current feature.
What FunnelGuard does do is run your real customer journeys on a schedule, such as lead forms, checkouts and booking or chat buttons, and check each step, the tracking hits sent to ad and analytics platforms and whether test leads reach your inbox and CRM. If a search-related change also breaks one of those journeys, that failure can show up there, but the autocomplete dropdown itself is not tested.
To watch for autocomplete problems now, put the five-term test above on a monthly calendar reminder, check your site search analytics for rising no-result queries, and review browser Console errors after each release. A free read-only website audit from FunnelGuard is also available for a wider look at your site.
Questions people ask
Why is my search autocomplete not showing suggestions?
Most often a JavaScript error, a blocked or failing suggestions request or an out-of-date search index. Open developer tools, type in the box and look at the Console for errors and the Network tab for the request status. That tells you which of the three it is.
Why does my site search work but the dropdown doesn't?
The full search and the dropdown use different code paths. The results page loads normally, while the dropdown depends on JavaScript and a separate request as you type. A script conflict or blocked request can break one and leave the other working.
How do I fix Shopify predictive search not working?
Check that predictive search is enabled in your theme settings, then turn off search app embeds one at a time to find a conflict. If a fresh copy of the theme works, a custom edit or leftover app code in your live theme is the cause.
Why does search autocomplete work on desktop but not mobile?
Many themes load a separate search component for mobile. Test on a real phone, check the Console using remote debugging or a device emulator and look for layering issues, since the dropdown may sit behind the sticky header or keyboard.
Can a plugin or firewall break search suggestions?
Yes. Caching, security plugins and firewall rules can block the request that fetches suggestions, often returning a 403 or serving a cached empty reply. Allow the search endpoint and exclude it from caching.
Does broken autocomplete hurt SEO?
Not directly. Autocomplete is a user-experience feature, so the main cost is visitors who fail to find products quickly. It matters for conversions rather than rankings.
Does FunnelGuard monitor search autocomplete?
No. FunnelGuard does not check search autocomplete yet, though it is a possible future check. It does monitor lead forms, checkouts, tracking hits and test lead delivery on a schedule.
Related issues
- CNV-323Site search returns no results for obvious termsFix guide
- CNV-324Search box submits to 404Fix guide
- CNV-325Search results link to dead productsFix guide
- CNV-326Filters return nothing or wrong productsFix guide
- CNV-328Pagination/infinite scroll stops loadingFix guide
- CNV-327Sort order brokenFix guide