How to show trust badges in a custom position

Overview

Use Manual Position when the built-in positions (near the buy button, top or bottom of the page) do not fit. You place the badges yourself in the theme editor with the Trust badges Block app block, or with a code snippet in your theme.

Before you start

Steps

1. Select Manual Position

  1. Open Trust Badges, click the name of your badges, then click Placement.
  2. Under Page to display, select Manual Position.
  3. Copy the ID with the copy icon.

Manual Position selected with the ID, the Add liquid block to your theme button and the code snippet

Before the first save, the ID field shows "Save or Publish to show ID". Click Save in the bar at the top of the page first.

2. Add the Trust badges Block in the theme editor

  1. Click Add liquid block to your theme. The theme editor opens. You can also open it from Online Store > Themes > Customize.
  2. Open the page where you want the badges, for example a product page.
  3. Click Add section (or Add block inside a section), open the Apps tab, then select Trust badges Block. To find it faster, type its name in the search box.

Theme editor Add section panel, Apps tab, with Trust badges Block from XB: Trust Badges

3. Connect the block to your badges

  1. In the block settings, paste the ID into Trust badges ID.
  2. Drag the block to the place you want.
  3. Click Save in the theme editor.

Trust badges Block settings with the badges ID in Trust badges ID

The badges show where you placed the block:

Theme editor preview with the trust badges in their own section above the Subscribe to our emails section

The block shows the badges only when they use Manual Position and are Active.

Use the code snippet instead

If you or your developer edit theme code, copy the code snippet from the Placement step and paste it in any theme file where you want the badges. It looks like this, with your ID in data-id:

<div class="xbtb-block" data-id="YOUR-TRUST-BADGES-ID"></div>