Adding recommendations with theme app blocks

Learn about Recommendation widgets, their types, and available settings in the Using Recommendations guide.

If your store uses themes that support theme app blocks, you’ll see the Theme blocks tab in the Merchandising & Promo > Recommendations section. From there, you can add Recommendation widgets to your theme using app blocks in the Theme Editor.

Important info

  1. Recommendation app blocks can only be added to themes where the app is activated. To check whether the app is active in a theme, go to the Search & Navigation > Preferences section > Themes tab.
  2. We recommend adding app blocks through the app admin rather than directly in the Theme Editor. This allows you to view all Recommendation widgets and their statuses in one place and quickly navigate to their locations in the Theme Editor.

Add a widget

To add the Products by attribute widget to your theme, follow these instructions.

To add a Recommendation widget of another type to your theme:

  1. Go to Searchanise Search & Filter control panel > Merchandising & Promo > Recommendations section > Theme blocks tab.
  2. Click Add in the top-right corner.
  3. In the installation dialog, select the widget type, theme, and page where you want to place the widget, then click Install.

    Adding recommendations with theme app blocks
  4. The Theme Editor will open with the selected app block. Configure the widget settings (click on the selected app block on the left side to see the settings):
    Adding recommendations with theme app blocks
    • Optionally, change the Title.
    • For Featured Products, select the products to display.
    • For Similar Products, choose a value for the Based on setting.
    • For Recently Viewed Products, specify how long viewed products should remain visible.
    • Optionally, move the block to a different position on the page.
  5. Click Save in the Theme Editor.
  6. Return to the apps Recommendations section > Theme blocks tab, and click the Sync block button.

Once the synchronization is complete, the widget will appear in the list with its title and an Active status. The Recommendation widget will also be displayed on the selected page in your storefront theme.

To display the widget in another location, repeat the steps above and select a different page or theme during installation.

Add a Products by attribute widget

To add the Products by attribute widget to your theme:

  1. Go to Searchanise Search & Filter control panel > Merchandising & Promo > Recommendations section > Theme blocks tab.
  2. Click Add in the upper-right corner.
  3. In the installation dialog:

    • Select Products by Attribute as the widget type.
    • Select the theme and page where you want to display the widget.
    • In the Based on setting, select the product attribute (for example, Vendor or Product type) and the attribute value that will be used to generate recommendations.
      Adding recommendations with theme app blocks
  4. Click Install.
  5. Copy the Widget key (ID) displayed in the installation dialog:
    Adding recommendations with theme app blocks

    then click Install again. The selected page opens in the Shopify Theme Editor with the Products by Attribute app block selected.

  6. In the Theme Editor, configure the app block:
    • Paste the copied Widget key (ID) into the Widget key field.
    • Сhange the Title.
    • Optionally, adjust the Maximum product count.
    • Optionally, drag the app block to another position on the page.
      Adding recommendations with theme app blocks
  7. Click Save in the Theme Editor.
  8. Return to the apps Recommendations section > Theme blocks tab, then click the Sync block button.

Once the synchronization is complete, the theme block will appear in the list with its title and an Active status. Hover over the Based on tooltip to view the selected attribute and value. 

Adding recommendations with theme app blocks

The Recommendation widget will also be displayed on the selected page in your storefront theme. To display the widget in another location, click Edit next to the added theme block. On the Edit Products by Attribute page, you’ll see all theme blocks currently connected to the Products by Attribute widget for the selected attribute and value. In the Theme blocks table, click Add to install the widget on another theme or page.

Alternatively, repeat the steps above and select a different theme or page during installation.

Edit a Products by attribute widget

To change which products the widget recommends:

  1. Go to Searchanise Search & Filter control panel > Merchandising & Promo > Recommendations section > Theme blocks tab.
  2. In the Theme blocks list, find the Products by Attribute widget with the Based on settings you want to change, then click Edit.
  3. Update the Based on settings.
  4. Click Save.

The storefront widget is updated automatically after the changes are saved.

The Edit page also shows all theme blocks connected to the widget with the selected Based on settings. From there, you can install the widget on another theme or page, or customize an existing block by opening it in the Shopify Theme Editor.

Install the widget in another theme or page

  1. Click Add.
  2. In the installation dialog:
    • Select the theme and page where you want to display the widget.
    • Copy the Widget key (ID).
  3. Click Install. The selected page opens in the Shopify Theme Editor with the Products by Attribute app block selected.
  4. In the Theme Editor, configure the app block:
    • Paste the copied Widget key (ID) into the Widget key field.
    • Optionally, change the Title and adjust the Maximum product count.
    • Optionally, drag the app block to another position on the page.
  5. Click Save in the Theme Editor.
  6. Return to the Searchanise app, then click Sync block.

Once the synchronization is complete, the new theme block will appear in the list with its title and an Active status.

Widget statuses

You can view the status of each Recommendation widget in the Theme blocks tab. The status is synchronized with the corresponding app block in your theme.

  • Active — the app block is installed and visible.
  • Hidden — the app block is installed but hidden.
  • Missing — the app block isn’t installed.

Hide a widget

To hide a Recommendation widget:

  1. Go to Searchanise Search & Filter control panel > Merchandising & Promo > Recommendations section > Theme blocks tab.
  2. Click Customize next to the block.
  3. The Theme Editor will open with the corresponding app block.
  4. Hide the app block in the Theme Editor and save your changes.
  5. Return to the apps Recommendations section > Theme blocks tab, and click the Sync block button.

The widget’s status in the admin panel will change to Hidden, and it will no longer be displayed to shoppers.

Activate a widget

To activate the hidden Recommendation widget:

  1. Go to Searchanise Search & Filter control panel > Merchandising & Promo > Recommendations section > Theme blocks tab.
  2. Click Customize next to the block.
  3. The Theme Editor will open with the corresponding app block.
  4. Activate the app block in the Theme Editor and save your changes.
  5. Return to the apps Recommendations section > Theme blocks tab, and click the Sync block button.

The widget’s status in the admin panel will change to Active, and it will be displayed to shoppers.

Edit a widget in Theme Editor

To edit a Recommendation widget:

  1. Go to Searchanise Search & Filter control panel > Merchandising & Promo > Recommendations section > Theme blocks tab.
  2. Click Customize next to the block.
  3. The Theme Editor will open with the corresponding app block.
  4. Update the app block settings as needed.
  5. Save your changes in the Theme Editor.
  6. Return to the apps Recommendations section > Theme blocks tab, and click the Sync block button.

Delete a widget

To delete a Recommendation widget:

  1. Go to Searchanise Search & Filter control panel > Merchandising & Promo > Recommendations section > Theme blocks tab.
  2. Click Customize next to the block.
  3. The Theme Editor will open with the corresponding app block.
  4. Remove the app block and save your changes.
  5. Return to the Theme blocks tab, and click the Sync block button. The widget status will change to Missing.
  6. Click Delete next to the block and confirm the action.

The widget will be removed from both your theme and the Searchanise admin panel.

Updated on July 29, 2026

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you

Let us improve this post!

Please tell us how we can improve this post

Related Articles