How to add smart search to WordPress / WooCommerce
Add Indexa search to WordPress and WooCommerce using a global head-code field, without editing your theme files.
Prepare the catalog and code
Connect your product feed in Indexa and wait for the catalog to load.
In “Widget → Integration”, enter the website URL and copy the universal code.
Install through a plugin
In WordPress, open “Plugins → Add New”, install Head & Footer Code and activate it.
Open “Tools → Head & Footer Code”.
Paste the complete Indexa code into the global HEAD field.
Save your changes and clear the caching plugin's cache if you use one.
Example for the HEAD field
<script async src="INDEXA_LOADER_URL_FROM_DASHBOARD"></script>
If your theme already has a code field
You can use the theme's global head-code field instead. Choose one method so the code is added only once.
For WooCommerce, install the code in the WordPress site header, rather than a product description or a block on a single page.
Check search after installation
Open your store, then use “Check installation” in Indexa. Select the desktop and mobile search elements and save.
Search for a product, follow its link and close the widget. Repeat on the home, category and product pages.