2021
v13
Besides improved performance and bug fixes, v13 introduced a major search UI overhaul. You can compare v12 and v13 default layouts side by side.
The new v13 script is located here (take out the .min for a readable version): https://cdn.sitesearch360.com/v13/sitesearch360-v13.min.js
Note: most of HTML class names were changed, so all custom CSS and the additionalCss parameters need to be checked and updated. Follow our detailed upgrade instructions and let us know if you need any help with the upgrade.
v13
Default styles and settings that have been changed:
style.themeColorvoiceSearch.colorlayout.navigationby default is set to tabs (instead of none) displayed on top. We've added more space between the tabs and enabled an All results tab by default.results.collapseDataPointsis moved todataPoints.collapseByand is set to use a comma separator by default.dataPoints.directiondefines if your data points should be shown in a row or in a column.results.moreResultsButtonhas a new default label: 'See more'.layout.singleLineGridTitleis set to false by default, makes long product/result titles break into two lines (used to be cut off at the end of the first line) in grid layout.results.ctachanges the structure and becomes an array of objects.filters.deleteAllLabelis changed to 'Reset All' instead of 'Clear All', removes all selected filter values.filters.toggleButtonLabelis the label shown next to the filter icon on mobile.results.sortingLabelis the label shown before the sorting dropdown (e.g. 'Sort by').searchBox.searchButtonhas a default selector now: #searchButton, in addition to the default #searchBox selector.results.highlightSearchTerms,results.queryTermScrollIntoViewBlock,results.queryTermHighlightContextare moved toqueryTerm.highlight,queryTerm.scrollIntoViewBlock,queryTerm.highlightContext.results.imageOverTitleis deprecated as all images in grid layout are now displayed on top of result titles by default.
New settings:
style.accentColor: in addition tothemeColor, you can now assign an accent color, light blue by default, that is used for interactive elements:- Filters, checkboxes, sliders
- 'See more results' button
- When hovering over content group tabs and buttons
- Search button next to the search box (when using the Site Search 360 default search box and button HTML)
results.ctaDirectioncan be set to row or column to define how multiple CTA buttons should be displayed.searchBox.searchButtonLabelis the label for the search buttons added via Site Search 360, e.g. 'Search' or 'Go!'. By default: undefined, meaning that a magnifying glass icon will be displayed.filters.multiSelectSearchLabelis the label for the search within a filter group/type, e.g. 'Search by brand'.filters.multiSelectEmptyStateis the label shown when searching within a filter type doesn't bring any results, e.g. 'Nope, nothing.'filters.multiSelectShowMoreLabelandfilters.multiSelectShowLessLabelby default: 'Show more' and 'Show less' links which expand/hide long lists of filter options.filters.multiSelectSearchThresholdandfilters.multiSelectShowMoreThresholddefines after how many filter options a search box or a 'Show more' link should be added.filters.clearGroupLabelis the label for the 'clear' button that resets selected values within a filter type.filters.sliderMinUnitLabelandfilters.sliderMaxUnitLabelare the labels for the range filter units, e.g. $.callbacks.navigationClickCallbackis called after a navigation (tab/scroll) element is clicked.callbacks.preRenderis called before the results are rendered, e.g. to sort the content groups.results.placeholderImageby default is a simple CSS pattern but you can provide a URL of a placeholder image of your choice to show it whenever image thumbnails are missing in your search results. If you simply want to hide all missing images, set this to null.queryTerm.highlightColoris the color used for highlighting, mainly for FAQ search and redirects.languagedefines the language of the search interface, auto-translates all labels for you, and can be set to one of the following for now:en/de/fr/nl/pl/it/es/mx/tr/pt/fi/sv/ru/cz/no/lt/ro/lv/el/hufilters.expandedGroupsCountis the number of filter groups/types that are fully expanded (by default: 6) when filters are displayed on the left.