Hello! How can we help?

Browse the Trustpilot Support Center to find info on Google Seller Ratings, Rich Snippets, TrustBoxes, Product reviews, plus how-to guides for editing your reviews and account settings

How to add a TrustBox in Shopify

This guide is for Shopify users who want to implement a TrustBox on their website.

In Shopify, TrustBoxes are added as custom snippets. By adding a new snippet, you can create and modify your store’s content, and add HTML, JAVASCRIPT, and CSS anywhere you want in Shopify.

How to add a TrustBox to your website:

  1. Navigate to Online Store / Themes
  2. Click on ... and then Edit HTML/CSS
  3. Choose Add a new snippet
  4. Create a new snippet for the body part of the code snippet from Trustpilot by typing in the name of the TrustBox you’d like to implement, e.g. the carouseltrustboxbody. Then choose Create snippet
  5. Now go to Integrations in your business account and select the TrustBox Library.
  6. Find the TrustBox you’d like to implement and click on Learn more to see instructions.
  7. Copy the body part of the code snippet from TrustBox. 
  8. Paste the body part of the code snippet in the new code snippet carouseltrustboxbody.
  9. Click Save.
  10. Repeat steps 3 through 9, but this time, name your snippet with script instead of body, e.g. carouseltrustboxscript
  11. Now copy the script part of the code snippet from TrustBox.
  12. Under Layout select the default theme.liquid or the layout that you use.
  13. Place {% include 'trustboxscript' %} between <head></head>
  14. Place {% include 'carouseltrustboxbody' %} where you’d like to display the TrustBox, e.g. between <body></body>.
  15. Now your TrustBox should be displayed on your website.

How to add multiple TrustBoxes to your website:

The first section of this article describes how to implement a TrustBox on your website using the Carousel TrustBox as an example. The second section of the article will describe how to implement one more TrustBox, using the Horizontal TrustBox as an example.

Note that in our TrustBox Library, we provide you with suggested placements for each of our TrustBoxes.

  1. Create a new snippet for a Horizontal TrustBox body by following steps 4-9 in How to add a TrustBox to your website. 
  2. Navigate to theme.liquid under Add a new snippet.
  3. Place the {% include 'Horizontaltrustboxbody' %} where you’d like to display the TrustBox between <footer></footer>. eg. above the paypal button.
  4. Both TrustBoxes will now be displayed on your website.

How to remove a TrustBox from your website

  1. Navigate to theme.liquid under Layout.
  2. Remove the code snippets you previously added between <head></head> in step 13 and <body></body> in step 14 (see How to add a TrustBox to your website).
  3. Click Save.
  4. Navigate to snippets.
  5. Select the snippets you want to delete.
  6. Click on the garbage/trash icon.
  7. Click on Delete to delete the snippet(s) permanently.

Comments

0 comments

Please sign in to leave a comment.