WebCallHub.aiStart Free
Help June 1, 2026 · 5 min read

Widget Installation Guide: WordPress, Shopify, Webflow & More

Add a live call button to your website in under five minutes. This guide covers installation for every major platform, plus troubleshooting for common issues.

Before You Start

You need two things:

  1. A WebCallHub account. If you do not have one, sign up here.
  2. Your Site ID. Find it in the WebCallHub dashboard under Settings → Widget → Site ID. It looks like site_abc123xyz.

The widget is a single script tag that works on any website. Here is the tag you will be adding:

<script src="https://webcallhub.com/embed/widget.js" data-site-id="YOUR_SITE_ID"></script>

Replace YOUR_SITE_ID with the value from your dashboard. That is the only required change.

WordPress

Option A: Manual (no plugin needed)

  1. Go to Appearance → Theme File Editor (or Theme Editor in older versions).
  2. Select your active theme, then open footer.php.
  3. Paste the script tag just before the closing </body> tag.
  4. Click Update File.

If your theme does not have a footer.php, use Appearance → Widgets and add a Custom HTML widget to the footer area with the script tag inside it.

Option B: Using a plugin

If you prefer not to edit theme files, install any "header/footer scripts" plugin (for example, WPCode or Insert Headers and Footers):

  1. Go to Plugins → Add New, search for "WPCode", install and activate.
  2. Go to Code Snippets → Header & Footer.
  3. Paste the script tag into the Footer section.
  4. Save.
If you use a page builder (Elementor, Divi, Beaver Builder), you can also add an HTML widget to your global footer template with the script tag.

Shopify

  1. In your Shopify admin, go to Online Store → Themes.
  2. Click Actions → Edit Code on your active theme.
  3. Open theme.liquid under the Layout folder.
  4. Find the closing </body> tag and paste the script tag directly above it.
  5. Click Save.

The widget will appear on every page of your store, including product pages and checkout (unless your plan restricts checkout customization).

Webflow

  1. Open your Webflow project and go to Project Settings.
  2. Select the Custom Code tab.
  3. Paste the script tag in the Footer Code field (the one labeled "before </body> tag").
  4. Click Save Changes, then Publish your site.

The widget loads site-wide. If you want it on specific pages only, add the code in the page-level custom code settings instead of the project-level settings.

Squarespace

  1. Go to Settings → Advanced → Code Injection.
  2. Paste the script tag in the Footer field.
  3. Click Save.

Code injection is available on Squarespace Business and Commerce plans. If you are on a Personal plan, you will need to upgrade to add custom scripts.

Wix

  1. In the Wix dashboard, go to Settings → Custom Code (under Advanced).
  2. Click + Add Custom Code.
  3. Paste the script tag, name it "WebCallHub Widget".
  4. Set placement to Body - end and apply to All pages.
  5. Click Apply.

Custom code requires a Wix Premium plan. The widget will not appear in the Wix editor preview -- publish and view your live site to confirm it works.

Plain HTML / Any Other Site

Add the script tag before the closing </body> tag in every page where you want the widget:

<!DOCTYPE html>
<html>
<head>
  <title>Your Page</title>
</head>
<body>
  <!-- your page content -->

  <script src="https://webcallhub.com/embed/widget.js"
          data-site-id="YOUR_SITE_ID"></script>
</body>
</html>

If you use a static site generator (Hugo, Jekyll, Next.js, Gatsby), add the script tag to your base layout or _app.js / _document.js file.

Verifying the Installation

  1. Open your website in a browser (not the CMS preview -- the live published version).
  2. Look for the call button in the bottom-right corner of the page.
  3. Click it. You should see a call dialog with a "Call Support" button.
  4. If an agent is online in the dashboard, the call will connect. If no agents are online, the AI receptionist will answer (if enabled) or the visitor will see an offline message.

Troubleshooting

Widget not showing

CORS errors in the console

If you see Access-Control-Allow-Origin errors, your domain may not be registered in your WebCallHub account. Go to Settings → Widget → Allowed Domains and add your website's domain (e.g., www.yoursite.com). Include both www and non-www versions if applicable.

Content Security Policy (CSP) blocking the widget

If your site uses a strict Content Security Policy, you need to allow the widget's origin. Add the following to your CSP header:

script-src 'self' https://webcallhub.com;
connect-src 'self' https://app.webcallhub.com wss://app.webcallhub.com;

The script-src directive allows the widget script to load. The connect-src directive allows the widget to make API calls and establish WebSocket connections for the call.

Widget loads but calls fail

Widget appears on pages where you do not want it

If you added the script site-wide but want to hide it on specific pages, add this CSS to those pages:

#webcallhub-widget { display: none !important; }

Alternatively, move the script tag from your global footer to only the specific pages where you want it to appear.

Need more help?

Our team is here to help. Reach out anytime.

Contact Support