I have written a little script that provides "fuzzy" suggestions in the event that a search query returns no results (usually due to a miss-spelling).
The suggestion is rendered as a clickable link that submits the suggestion back to the search engine.
The code is available [here on GitHub]
To use, simply open the file searchresults.php from the i18n_search directory into a text editor and insert the new code after the following line:
Try it out with the search engine on my site at: https://www.perpetual-beta.org/ (sorry, search is no longer available on my website)
That's all folks!
Quote:Sorry, I didn't find anything that matched your query: "typografy behavier"
Did you mean: typography behaviour
The suggestion is rendered as a clickable link that submits the suggestion back to the search engine.
The code is available [here on GitHub]
To use, simply open the file searchresults.php from the i18n_search directory into a text editor and insert the new code after the following line:
PHP Code:
<p class="search-no-results"><?php echo htmlspecialchars($notFoundText); ?></p>
Try it out with the search engine on my site at: https://www.perpetual-beta.org/ (sorry, search is no longer available on my website)
That's all folks!