Hi @nowton,
In our template files, we utilize code and documentation examples from their instantsearch.js version, so the code snippets from that documentation link should all work with our templates.
You can see how to customize the templates safely, over at https://github.com/WebDevStudios/wp-search-with-algolia/wiki/Customize-Templates and most specifically https://github.com/WebDevStudios/wp-search-with-algolia/wiki/Customize-your-search-page
If you’ve ever customized WooCommerce template files, for example, it’s going to be the exact same process here, where you copy the files into your active theme, and those will get used first when found. We also have a notification system in place to help notify if/when we modify the original templates, so you can review those changes and apply if/as needed.
Hope this helps get you started, but by all means ask questions and we’ll do the best we can to help.
Thread Starter
nowton
(@nowton)
So, I start reading documentation from here. I add insights index to
<div id="ais-wrapper" data-insights-index="wp_searchable_posts">
but get stuck from there on. Where would I add insights-object-id, insights-position, insights-query-id?
Based on their documentation, and how we presently have things set up, it would be within this HTML markup: https://github.com/WebDevStudios/wp-search-with-algolia/blob/2.7.1/templates/instantsearch.php#L47-L72
I suspect you’d be fine with adding those data attributes to the opening article tag on line 48.