Why my Search doesn't work
Our Search widget is a convenient interface that connects your website with Google search. While visitors initiate requests on your site, the actual search session takes place on Google's side.
If your Search doesn't return any results, one of these may be the reason.
In this article
Your website needs to be reindexed
Since our widget retrieves and displays search results from Google, your website needs to be indexed by Google for the widget to work.
Please wait until your website is indexed, or request indexation in your Search Console tool: Ask Google to recrawl your URLs.
Your website is password-protected
As mentioned earlier, the Search widget functions on webpages indexed by Google. However, web crawlers, responsible for finding pages to index, can't reach password-protected pages.
Therefore, to ensure the widget works, the only solution here is to make the protected webpage publicly available.
You've reached your API limit
Our Search widgets use the official Google Search API, which is limited to 100 search queries per day for free. To extend your query limits, you'll need to enable billing for your Google Cloud project.
Incorrect API key restrictions
The issue might stem from the API key settings, for instance, if your domain or the Elfsight domains weren't added to the list of allowed referrers.
To troubleshoot it and verify your API key configuration, please refer to this guide: Restricting your API key.
The widget is installed in iframe
The Search widget works when installed in an iframe and returns results. However, the results will be displayed in a floating window, and the responsive iframe may not be able to adjust its dimensions correctly to fit the results window. This could cause the search results to be cut off.
As a workaround, you can manually adjust the iframe's width
valuе to accommodate the results window. However, keep in mind that this workaround may result in the widget occupying a significant amount of space, so it’s best to avoid installing the Search widget within an iframe if possible.
Still having trouble? Just contact our Support Team for help. We will be delighted to assist! 🙌