leadbox

Embedding on Shopify

Site-wide install via theme.liquid

  1. In the Shopify admin, go to Online Store → Themes.
  2. On your live theme, click Edit code (via the ⋮ menu).
  3. Open layout/theme.liquid.
  4. Find the closing </body> tag and paste the script tag just before it:

    <script
      src="https://cdn.jsdelivr.net/gh/Ricky1800/leadbox@v0.2.0/dist/leadbox.min.js"
      data-endpoint="YOUR_ENDPOINT_URL"
      data-title="Get a Free Quote"
    ></script>
    
  5. Click Save. This applies the widget to every page of the storefront (product pages, collections, the homepage, etc.).

Single-page install (e.g. only the contact page)

  1. Instead of editing theme.liquid, open the specific template file used by that page (e.g. templates/page.contact.liquid, or whichever template your “Contact” or “Services” page uses — check Online Store → Pages to see which template a page is assigned).
  2. Paste the same script tag anywhere in that template file.
  3. Save.

Notes