Can I have multiple Swiftype search boxes or inputs on the same page?

I have a search page that has a search box in the header and another search box in the main content area of the page. Is it possible to have Swiftype power both of these? Do I need to install Swiftype twice to do this?

You can power multiple search inputs on the same page with just a single Swiftype installation. Assuming your are using our standard JavaScript search embed code, you just need to ensure that each instance of your search <input> code contains the same class or ID element for Swiftype to attach to.

For example, if you’ve configured your installation to use our default search input code snippet of:

<input type="text" class="st-default-search-input">

Your installation of Swiftype search will work work wherever that input code exists on your page.