In this article, you'll learn how to set up Smart Navigation for Blueprint themes. If you use a new Stencil theme platform, you should look for the appropriate instructions here.
Steps:
- Go to BigCommerce admin panel > Storefront > My themes > Current Theme.
- Click the Download Theme link to create a backup file. It will help you revert the changes if necessary.
- Click the Edit HTML/CSS link to open the in-browser template file editor.
- Open the category.html file in the template file editor.
- Find the code for displaying collections between the %%Panel.Header%% and %%Panel.Footer%% tags.
- Copy and paste the following Searchanise code instead (you should leave the collection name, collection picture, collection description, and breadcrumbs code untouched):
<script src="//www.searchserverapi.com/widgets/bigcommerce/init.js?api_key=[API Key]"></script> <div class="snize" id="snize_results"></div> <style type="text/css"><!-- /* Load spinner */ #snize-preload-spinner { height: 100px; width: 32px; margin: 0 auto; background-position: 0px center; background-repeat: no-repeat; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYAAAAALCAYAAAB2x1oQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAIj0lEQVR42u2bbWhTWRrHn3Puzc37JNYmTduhTMZBZLBF6gt+2h1HMxRUOrjmgzJfXGUXLU23Y0WHYpdWikp13LZU2cVZvwwK1i0WEcq2ju5+ErVSapEi40TqtE3TtE2meb0v5+wHE4l3kjRX9qaF6QMXwsn/3t/93//Jc9P0XIDVWq3VWq3V+k0WAgCYnZ01CILwNaX0DwBgBYAxjHFHaWnpfzPtNDMz85Eoit8AwOfJoR9Ylj1bUlLyKpN+enr6d4SQEwCwEQCCCKF/aTSab202WxQA4P79+6ZQKPS1JEluhJCVUjqq1Wo79uzZ86AQ/CtXrpgmJydPJhKJfRjjIkrpiMlk6mhpafmhEPzjx49/MD4+/k00Gn3LLy4uPn/z5s2hleh/YGDgo2g0ejqdbzAYztTU1BQk/wsXLnw8Ozt7GgB2JYeGbDbbmaampp/eh690/h85cuQTr9f7Dt/pdJ65evXqj4XgK/V/586dz3ieP4EQqqKUBhmG6bVYLN/u2LEj/D58pfm3tbV9Hg6HTyCENhFC5rVabV95efn5o0ePhgvRf9xu9665ubmTKb7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uHddfDtTU1NP74PX+n8P3z48PpXr141A8AXKX7yOYAXheAr9Z9cB34yuQ58nmGYPrPZ3LFz58734ivNP7kO/iRCqIoQEuQ47lZ5efn5Y8eOhQvRf9xu9xdzc3Mn0p8DWL9+/dlLly79Ugj+cvtfKv/VWq3VWq3V+g3W/wAZmNaB1vZW4QAAAABJRU5ErkJggg==); } --></style> <script>// <![CDATA[ (function(window, undefined) { var sXpos = 0, sIndex = 0, sTotalFrames = 12, sInterval = null; if (document.getElementById('snize_results').innerHTML != '') { return; } document.getElementById('snize_results').innerHTML = '<div id="snize-preload-spinner"></div>'; sInterval = setInterval(function() { var spinner = document.getElementById('snize-preload-spinner'); if (spinner) { document.getElementById('snize-preload-spinner').style.backgroundPosition = (- sXpos) + 'px center'; } else { clearInterval(sInterval); } sXpos += 32; sIndex += 1; if (sIndex >= 12) { sXpos = 0; sIndex = 0; } }, 30); }(window)); // ]]></script>
Important Replace [API Key] with the API Key of the Searchanise engine for your store. You can find it in the Searchanise control panel > Dashboard section.
Tip The theme code varies from one theme to another. If you are not sure where to paste the Searchanise code, don't hesitate to contact us. We will be happy to assist.
- Save the changes.
- Go to Searchanise control panel > Smart Navigation section.
- Select Navigating through embedding HTML code into the BigCommerce template option.
- Select the suitable option in the Category Product List depending on whether you want to display products from the current category only or display products from its subcategories as well.
- Apply the changes.
That's it. The Smart navigation feature is now set up. You can go to your categories in the storefront if you'd like to make sure it works correctly.
If you have any trouble setting up Smart Navigation, you can contact us. We will be glad to help.