As of December 31, 2023, Shopify no longer allows apps to modify theme code.
To integrate Autocomplete and InstantSearch, use the Algolia AI Search & Discovery appβs App Embed and App Blocks.
To get started, see Quickstart and Algolia configuration.
Enable the autocomplete menu
Algolia uses Shopifyβs App Embed to provide an autocomplete menu. To enable the autocomplete menu, see Enable Algolia on your theme.Configuration
To configure the Autocomplete menu, go to the Search options tab in your Shopify admin.Advanced customization
You can use custom hooks for advanced customization.Autocomplete version 1
If your autocomplete menu isnβt showing with Autocomplete version 1, check that youβre using the appropriate CSS selectors for Autocomplete:- Autocomplete version 1 adds the menu to a container element,
such as a
div
or aform
- Autocomplete version 0 adds the menu to an
input
element.
form[action="/search"] input[type="text"], form[action="/search"] input[type="/search"], form[action="/search"]
.
Redirects
The autocomplete menu includes the redirect plugin. To create a redirect rule, see Redirects. If you customized the autocomplete menuβs main template withbeforeAutocompleteMainTemplate
,
preserve the redirect behavior by including the elements.redirectUrlPlugin
variable.