No results message
You can customize the no results message by adjusting Translations
, specifically the noResultsMessage
and noResultsMessageOne
keys.
<script>
function LBInitAutocomplete() {
AutoComplete({
Layout: 'heromobile',
TrackerId: '179075-204259',
Locale: 'en',
Translations: {
en: {
types: {
item: {
name: "Products",
heroName: "Top product"
},
query: {
name: "Searches"
},
category: {
name: "Categories"
}
},
noResultsMessage: "Your search for \":query\" did not match any of our products. Please try another search term.",
noResultsMessageOne: "Just one product found for \":query\".",
}
},
Types: [
{
type: 'product',
size: 7
},
{
type: 'query'
},
{
type: 'category'
}
]
}, '#q')
}
</script>
<script src="https://cdn.luigisbox.com/autocomplete.js" async onload="LBInitAutocomplete()"></script>