Yes, you can directly edit the
algolia_config.js.liquid
file for that theme:- Find the theme you want to alter and select "Edit Code."
- Open the
assets/algolia_config.js.liquid
file. - Copy the JSON object after
algoliaShopify.config =
- (Optional) Paste the content into a Beautifier such as (https://jsonformatter.org/)
- Remove the
;
at the very end of your object. - Select the
format/beautify
button in the middle.
- Remove the
- Find and update the
selector
you need.- The Autocomplete dropdown parameter is "input_selector"
- The InstantSearch results box parameter is called "results_selector"
- Replace the relevant values in the
algolia_config.js.liquid
file with the newly edited beautified code. - Press "Save" on the Edit Code page.
- Reload the page and test the theme preview.