Search
Nova supports using default WordPress archives or pmc-swiftype.
Default functionality using template-archive
Add the following to your brand's Template Configuration,
{
"search": {
"*": "template-archive"
}
}Using Swifttype
The pmc-swiftype plugin is enabled by default for all Nova brands.
Template Configuration
In your brand's Template Configuration for the page post type, add support for a page-results.
{
"page": {
"*" : "template-page",
"page-results": "template-search-archive"
},
}Note: make sure you've removed any usage of the default behavior's search key.
Page and shortcode usage
- Create a page in WordPress with the slug
results. - Use the shortcode
[pmc_swiftype_site_search].
Styling
Swiftype can be styled using Nova tokens. If you don't have tokens for your brand, check with your designer.
References,