Skip to main content

Shopify – SDK 2.0 Integration Without a Custom Liquid Component

Updated over a week ago

Objective

The purpose of this document is to outline the process for creating a custom HTML component in Shopify themes that don’t have it enabled by default, allowing you to embed any Terrific component using SDK 2.0.

Step by Step

Requirements

  • Admin access to Shopify.

  • Active theme without custom HTML components enabled.

  • Terrific scripts with specific keys (storeId, embeddingId).

Create an Custom HTML component

  1. Go to Online Store > Themes.

    2025-10-02_17-17-09-20251002-231726.png

  2. In the published theme, click the three-dot button (...) and select Edit code.

    2025-10-02_17-18-36-20251002-231849.png

  3. In the code editor, find the Sections block in the sidebar and click New file.

    2025-10-02_17-20-05-20251002-232029.png

  4. Create a file named custom-code.liquid

    2025-10-02_17-21-20-20251002-232236.png
    2025-10-02_17-13-37-20251002-232245.png

  5. Paste the following code, and click Save.

{% schema %} 
{
"name": "Custom Code",
"tag": "section",
"class": "section",
"settings": [
{
"type": "textarea",
"id": "custom_code",
"label": "Custom HTML / Liquid / JS",
"default": "<div>Insert your custom code here...</div>"
}
],
"presets": [
{
"name": "Custom Code"
}
],
"enabled_on": {
"templates": ["index", "product", "collection", "page", "article", "cart"]
}
}
{% endschema %}

<div class="custom-code-block">
{{ section.settings.custom_code }}
</div>

2025-10-02_17-25-28-20251002-232541.png

Terrific Embeds

Once our component is created, we proceed to embed our Terrific component.

Add the SDK in the <head>

  1. To add the SDK in the <head>, go back to the code editor following the previous steps, but now navigate to Layout > theme.liquid.

    2025-10-02_17-32-07-20251002-233215.png

  2. Open the file and insert the following line of code just before the closing </head> tag:
    <script defer src="https://terrific.live/terrific-sdk.js" storeId="YOUR-STORE-ID"></script> and click Save.

    2025-10-02_17-36-48-20251002-233712.png

A member of the Terrific staff will provide you with your storeId.

Add a Terrific block to your store

  1. Go back to Online Store > Themes. On the same theme where you added the custom HTML component and the SDK script, click Customize.

    2025-10-02_17-46-55-20251002-234709.png

  2. Navigate to the section where you want to add your Terrific component (Live Session, Timeline, Shoppable Video, Polls, etc.).

    2025-10-02_17-47-48-20251002-234800.png

  3. In the left menu, under Template, click Add Section, find the component you created “Custom Code,” and select it.

    2025-10-02_17-48-33-20251002-234852.png

  4. A new component will be added to your section.

    2025-10-02_17-49-52-20251002-235217.png

    Click on it and replace the default content:

<div>Insert your custom code here...</div>

2025-10-02_17-50-03-20251002-235304.png


with this code:

<div>   
<div data-source="terrific" embedding-id="YOUR-EMBEDDING-ID"></div> </div>

2025-10-02_17-50-45-20251002-235344.png

A member of the Terrific staff will provide your embedding-id.

5. You will see your Terrific block in the theme preview. Click Save and you’re done.

2025-10-02_17-51-35-20251002-235437.png

NOTE: Once the component is created, you can drag and drop it to position it wherever you want. You can also add styles directly in the Custom Code block you created to adjust sizes, add text, etc.

Did this answer your question?