Header Search
How to use?
Copy-paste the following <script>
near the end of your pages under JS Nova to enable it.
Copy-paste the init function under JS Plugins Init., before the closing </body>
tag, to enable it.
Methods
Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-
, as in data-search-target=""
.
Attribute | Description |
---|---|
data-search-target |
ID of the hidden block in which the search result is generated. |
data-search-mobile-invoker |
ID of the element, when clicked, the search field will be called at resolution less than 768px. |
data-search-form |
ID of the search form. |
data-search-field |
Search field ID. |
data-search-clear |
ID of the item, when clicking on which the search field will be cleared. |