Documentation
Feedback
Guides

DidYouMean

DidYouMean is a component used to suggest a possible misspelling correction to the current query.

Usage

Add the did-you-mean block to the search-result-layout.desktop or search-result-layout.mobile. For example:


_10
"search-result-layout.desktop": {
_10
"children": [
_10
"flex-layout.row#didyoumean",
_10
],
_10
"flex-layout.row#didyoumean": {
_10
"children": ["did-you-mean"]
_10
}
_10
}

Customization

In order to apply CSS customizations in this and other blocks, follow the instructions given in the recipe on Using CSS Handles for store customization.

CSS Handles
didYouMeanPrefix
didYouMeanTerm
Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
1
Photo of the contributor
+ 1 contributors
On this page