How to Embed a Widget on BigCommerce

BigCommerce is a powerful e-commerce platform used by thousands of online stores. By embedding Embeddy widgets on your BigCommerce store, you can add interactive calculators, product configurators, quizzes, lead capture forms, and more — without building a custom app. This guide covers three methods: Script Manager, Page Builder HTML blocks, and direct Stencil theme file editing.

Beginner–Intermediate~8 min readUpdated 2026

Prerequisites

Before you start, have the following ready:

<iframe
  src="https://embeddy.ai/webhost/WIDGET_ID?widget_props_id=PROPS_ID"
  width="100%"
  height="500"
  frameborder="0"
></iframe>
  • BigCommerce admin access. You need Store Owner or a staff account with permissions to manage Storefront settings, Script Manager, and Page Builder.
  • A Stencil theme (for Method 3). Most modern BigCommerce stores use Stencil themes such as Cornerstone. Legacy Blueprint themes use a different file structure.

Back up your theme before editing files. In BigCommerce admin, go to Storefront > Themes, click the three-dot menu on your active theme, and select "Download Theme File" to save a local backup.

Method 1: Script Manager

Easiest — no code editing required

BigCommerce's Script Manager lets you inject custom HTML and JavaScript into your store pages without editing theme files. This is the quickest way to add an Embeddy widget globally or to specific page types.

  1. 1

    Open Script Manager

    In your BigCommerce admin, navigate to Storefront > Script Manager.

  2. 2

    Create a new script

    Click "Create a Script". Give it a descriptive name like "Embeddy Widget".

  3. 3

    Configure the script settings

    Set Location on page to "Footer". Under Select pages where script will be added, choose the relevant option (e.g., "All Pages", "Store Pages", or a specific page). Set Script type to "Script".

  4. 4

    Paste your embed code

    In the Script contents text area, paste a script that dynamically inserts your iframe into a target container on the page:

<script>
  document.addEventListener("DOMContentLoaded", function() {
    var target = document.querySelector(".page-content, .body");
    if (target) {
      var wrapper = document.createElement("div");
      wrapper.style.maxWidth = "800px";
      wrapper.style.margin = "2rem auto";
      wrapper.innerHTML = '<iframe src="https://embeddy.ai/webhost/WIDGET_ID?widget_props_id=PROPS_ID" width="100%" height="500" frameborder="0" style="border:none;border-radius:8px;" loading="lazy" title="Interactive Widget"></iframe>';
      target.appendChild(wrapper);
    }
  });
</script>
  1. 5

    Save

    Click "Save". Visit your live store to confirm the widget appears on the selected pages.

Tip: Script Manager scripts are preserved across theme updates, making this the most maintenance-friendly approach. You can also target specific page types like Product Pages or Category Pages from the dropdown.

Method 2: Page Builder HTML Block

Easy — visual drag-and-drop

BigCommerce's Page Builder is a drag-and-drop visual editor that lets you add HTML blocks to any content page. This is ideal for placing an Embeddy widget on a specific landing page or content page.

  1. 1

    Open Page Builder

    In your BigCommerce admin, go to Storefront > Web Pages. Click the page you want to edit (or create a new one). The Page Builder editor will open.

  2. 2

    Add an HTML widget

    In the left panel, find the "HTML" widget under the Layout section. Drag it to your desired position on the page.

  3. 3

    Paste your embed code

    Click the HTML widget to select it. In the settings panel on the left, paste your Embeddy iframe embed code into the HTML editor.

  4. 4

    Save and publish

    Click "Save & Close" or "Publish". Visit the page on your live store to verify the widget appears.

<div style="max-width: 800px; margin: 2rem auto;">
  <iframe
    src="https://embeddy.ai/webhost/WIDGET_ID?widget_props_id=PROPS_ID"
    width="100%"
    height="500"
    frameborder="0"
    style="border: none; border-radius: 8px;"
    loading="lazy"
    title="Interactive Widget"
  ></iframe>
</div>

Tip: Page Builder works best for content pages and landing pages. For product pages or category pages, use Method 1 (Script Manager) or Method 3 (theme files).

Method 3: Edit Stencil Theme Files

Advanced — requires Handlebars/HTML knowledge

For precise placement on product pages, category pages, or any template, you can edit the Stencil theme files directly. BigCommerce Stencil themes use Handlebars templates, so you can insert raw HTML including iframes.

  1. 1

    Download your theme

    Go to Storefront > Themes, click the three-dot menu on your active theme, and select "Advanced > Edit Theme Files" or download the theme for local development with the Stencil CLI.

  2. 2

    Open the target template

    Navigate to the template you want to modify. Common files include templates/pages/product.html for product pages or templates/pages/page.html for content pages.

  3. 3

    Paste the embed code

    Insert the iframe code at the desired position in the Handlebars template:

{{!-- Embeddy Widget --}}
<div class="embeddy-widget-wrapper" style="max-width: 800px; margin: 2rem auto;">
  <iframe
    src="https://embeddy.ai/webhost/WIDGET_ID?widget_props_id=PROPS_ID"
    width="100%"
    height="500"
    frameborder="0"
    style="border: none; border-radius: 8px;"
    loading="lazy"
    title="Interactive Widget"
  ></iframe>
</div>
  1. 4

    Save and apply

    Save the file and apply the theme. If using the Stencil CLI, run stencil push to upload your changes.

Remember: Theme file edits will be overwritten if you update or switch themes. Consider using Script Manager (Method 1) for a more permanent solution that persists across theme changes.

Embedding on Product Pages

Product pages are one of the most effective places to embed an Embeddy widget on BigCommerce. Common use cases include:

  • Size calculators — help shoppers find the right fit
  • Product configurators — let customers customize options visually
  • Compatibility checkers — ensure parts or accessories work together
  • ROI calculators — demonstrate value for high-ticket items

To embed on all product pages, use Method 1 with "Product Pages" selected in Script Manager, or edit templates/pages/product.html in Method 3.

To embed on specific products only, use Script Manager with conditional JavaScript that checks the product ID or URL, or create a custom product template and assign it to specific products in the BigCommerce admin.

Troubleshooting

Script Manager script is not appearing on the page

Make sure the script is set to "Enabled" and the correct page scope is selected. Also verify the script location is set to "Footer" so it runs after the DOM is loaded. Check browser developer console (F12) for any JavaScript errors.

The widget shows a blank area or loading spinner indefinitely

Verify that your Widget ID and Props ID in the embed URL are correct. Copy the embed code fresh from the Embeddy dashboard and ensure your widget is published (not in draft mode).

Content Security Policy (CSP) error blocking the iframe

Some BigCommerce apps or custom headers may block external iframes. Check your browser developer console for CSP errors mentioning frame-src or embeddy.ai. You may need to add embeddy.ai to your store's CSP allowlist.

Widget is cut off on mobile

Ensure the iframe has width="100%". Wrap the iframe in a responsive container div with max-width: 100%; overflow: hidden; to prevent horizontal scrolling on smaller screens.

Page Builder HTML block does not render the iframe

Ensure you are using the HTML widget, not a standard Text widget. The Text widget may strip or sanitize HTML tags including iframes. The HTML widget renders raw HTML exactly as entered.

Frequently Asked Questions

Will embedding a widget affect my BigCommerce store's page speed?

Iframes load independently and do not block your main page render. Using loading="lazy" defers loading until the widget is near the viewport, maintaining good Core Web Vitals scores. Embeddy's infrastructure is optimized for fast global delivery.

Do Script Manager scripts survive theme updates?

Yes — scripts added via Script Manager are stored independently of your theme files. They will persist across theme updates and even theme switches, making Script Manager the most durable approach for long-term widget embedding.

Can I use this on a BigCommerce Essentials plan?

Yes. Script Manager and Page Builder are available on all BigCommerce plans including Standard, Plus, Pro, and Enterprise. All plans support embedding custom HTML and iframes.

Ready to supercharge your BigCommerce store?

Build a free interactive widget — calculator, product configurator, quiz, or anything you need — and embed it on your store in minutes.

Create your free widget at embeddy.ai