Adding Kelp search to a Shopify Liquid theme
Add Kelp search to any Online Store (Liquid) theme with one theme section and one JavaScript file. No npm or build step is needed.
Before you start
- Catalogue sync is complete and your collection has products in it.
- You have your Kelp search host, your collection name (usually
products) and a search-scoped API key.
Steps
- Add the
sections/kelp-search.liquidsection and theassets/kelp-search.jsfile from the guide. - In the theme editor, add the section to your search template or a custom page.
- Fill in the section settings: search URL, API key, collection and placeholder text.
- Check that product links match your product URL format. The default is
/products/{handle}. - Test a search, a facet click and a product click.
Good to know
- Theme settings are visible in your page HTML, so only use a key scoped to search and events. To keep the key off your storefront, route requests through an app proxy you host.
- Product clicks are tracked with the search's
queryIdso Kelp can attribute them. Purchase events need a customer event or pixel. - For meaning-based results, enable semantic search on the collection and send a
semanticWeightwith each search.
Full guide: Shopify Liquid
Updated on: 04/12/2026
Thank you!