Adding Wordpress to Magento

Hi. Having some issues getting algolia to add an index - main index is Magento , trying to add wordpress.

Everything is configured , followed instructions here . I used the boilerplate extension to override the default magento search and it works fine.

However , it errors when it gets to the following line

var customTemplate = $(’#autocomplete_wordpress_template’).html();

( I changed the template name to my one … and I can see the following

Uncaught TypeError: Cannot read property ‘html’ of null
at algoliaHookBeforeAutocompleteStart (autocomplete.js:118)
at HTMLInputElement. (autocomplete.js:84)
at Function.each (jquery.js:370)
at ge.fn.init.each (jquery.js:137)
at HTMLDocument. (autocomplete.js:63)
at u (jquery.js:3232)
at Object.add [as done] (jquery.js:3291)
at (jquery.js:3542)
at ge.fn.init (jquery.js:2967)
at [as $] (jquery.js:75)

Hello @martin1,

it looks like the template with ID autocomplete_wordpress_template is not rendered to the page.
Can you check that all the template from your custom extension are rendered to the page?