Add a widget to the Shopify website

First, please make sure that you:

  1. added the Trust code to your website
  2. created a widget and assigned testimonials to it first.

After your widget is set and ready, all you need to do is copy and paste its code to the appropriate place on your Shopify website.

1. Go to β€œWidgets”, choose a widget you want to add to your website, and click the β€œAdd to website” icon in front of it.

2. Copy the widget's code.

πŸ“ If your Shopify website already has the β€œCustom HTML” website section, you can jump to Step 7.

3. Log in to the Shopify account, go to β€œOnline Store β†’ Themes” on the left menu bar, press the β€œActions” button and choose β€œEdit code” from the dropdown menu.

4. Scroll down to the β€œSections” menu, press the β€œAdd a new section” button, name it:

section-custom-html

and click β€œCreate section”.

5. Remove the default code.

6. Copy & paste the code below to this section content, then press β€œSave”:

<div id="trust-custom-section">  
  {%- if section.settings.title != blank -%}
  <div class="trust-custom-title"><h2>{{section.settings.title}}</h2></div>  
  {%- endif -%}    
  <div class="trust-custom-code">{{section.settings.custom_html}}</div>
</div>

<style>   #trust-custom-section{position:relative;}  .trust-custom-title{text-align:center;} </style>

{% schema %}
  {
    "name": "HTML",
    "settings": [
      {
        "type": "text",
        "id": "title",
        "label": "Title"
      },
      {
        "type":"textarea",
        "id": "custom_html",
        "label": "HTML"
      }
    ],
    "presets": [
      {
        "name": "Custom HTML",
        "category": "Trust",
        "settings": {

        }
      }
    ]
  }
{% endschema %}

7. Come back to β€œOnline Store β†’ Themes” on the left menu bar and press the β€œCustomize” button.

8. Click the β€œAdd section” button on the place of the website page where you want the widget to appear, then find the β€œCustom HTML” section.

9. Paste the Trust widget’s code here and click β€œSave”.

10. Enjoy results!

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.