For the complete documentation index, see llms.txt. This page is also available as Markdown.

Place a trust badge with shortcode

Place a trust badge at an exact position in your Shopify theme using its shortcode.

Turn on Product page in the trust badge editor when the app's built-in position works for your store. When you need the trust badge somewhere else — for example directly below the buy buttons — copy its shortcode and add the Samita Trust Badge app block at that exact position in your theme.

Where to find the shortcode

The shortcode is available in two places:

  • Trust badge table — open Sami Product Labels → Extra Features → Trust Badges. Copy the snippet from the Shortcode column of the trust badge you want to place.

  • Trust badge editor — click the row's edit action, open Placement, then click Copy in the Shortcode section.

Trust badge table with the Shortcode column and copy button
Copy the shortcode directly from the updated Trust Badges table.
Placement tab with the Product page switch and Shortcode section
The Placement tab also provides the shortcode and a Copy button.

Place the shortcode in your theme

1

Copy the saved trust badge's shortcode

Copy the snippet from the table or the editor. It looks like this, with a unique ID for your trust badge:

Do not reuse a snippet from another row. Each trust badge has its own data-id.

2

Open the theme editor

In your Shopify admin, open Online Store. Find the theme you want to update and click Edit theme.

Online Store page with Edit theme on the selected theme
Open the theme that should display the trust badge.
3

Open the product template

Use the page selector at the top of the theme editor, then choose Products → Default product or another product template used by your store.

In the sections panel, expand Product information. The existing blocks — such as Title, Price, Buy buttons, and Description — show where the trust badge can be inserted.

Shopify theme editor with Default product selected and Product information expanded
Open the product template and expand Product information before adding the app block.
4

Add the Samita Trust Badge block

Click Add block, select the Apps tab, then choose Samita Trust Badge from Sami Product Labels. Drag the new block to the position you want, such as directly below Buy buttons.

Add block dialog on the Apps tab with Samita Trust Badge from Sami Product Labels
Select Samita Trust Badge from the Apps list, then place it in Product information.
5

Paste the shortcode and save the theme

Select the Samita Trust Badge block and paste the complete snippet into its Shortcode field. Click Save in the theme editor.

Samita Trust Badge app block with the shortcode pasted into its Shortcode field
Paste the complete shortcode into the app block, then save the theme.

The app block also provides Check how to get embed code to reopen this guide and Manage app to return to Sami Product Labels.

6

Check the storefront

Open a product that uses the edited template and confirm that the trust badge appears in the expected position.

If it does not appear, verify that:

  • the trust badge is Active, not Draft;

  • the shortcode contains the saved trust badge's exact data-id;

  • the full <div class="samitaPL-trustBadge" ...></div> snippet is in the Shortcode field;

  • the product uses the theme template you edited;

  • the Samita Trust Badge block is visible and the theme changes were saved.

Built-in placement vs. shortcode

Method
How it works

Product page

Turn on the switch in Placement to show the trust badge at the app's built-in position on all product pages. No theme editing is required.

Shortcode

Paste the saved trust badge's snippet into a Samita Trust Badge app block to control its exact position.

If you enable both methods on the same product template, the trust badge can appear twice. Use the product-page switch for the built-in position or the shortcode app block for a custom position.

Next steps

Last updated

Was this helpful?