Adding Recommendation widgets to theme files manually

If you need to add the Recommendation Widget to some specific part of the page, you may find it more convenient to insert the widget code right into the theme template. To do so, follow follow steps:

  1. Choose a place in your online store where you want to insert the widget.
    Important info

    The Similar Products Widget works only for product pages.

  2. Go to Shopify admin panel > Online store > Themes.
  3. Find the theme you want to edit, and then click Actions > Edit code.
  4. Choose a [file].liquid file where you want to insert the widget.
  5. Copy the code from the Recommendation Widget, which you created manually. See the instructions on how to use the Upsell & Cross-sell Widget.

    Adding Recommendation widgets to theme files manually

  6. Paste the code to the chosen [file].liquid file in any place you want.
    Adding Recommendation widgets to theme files manually
  7. Save the changes.

Recommendation Widget is added. Now you can check out how it looks in your storefront.

Enjoying your experience with Searchanise?

We’d appreciate it if you could take some time to leave a review.

Updated on April 7, 2022

Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support
Back to top