Skip to content
localbot Docs

Troubleshooting

Common issues and how to fix them.

Common issues and how to fix them.

Widget doesn't appear

  1. Check the script tag placement. It should be before </body>, not inside <head>.
  2. Verify your widget ID. Log in to the dashboard and confirm the ID in your embed code matches.
  3. Check the browser console. Open Developer Tools (F12) and look for errors. If you see localbot: widget not found, your widget ID is incorrect.
  4. Check the Network tab for the widget request. If the request to localbot.io/api/widget/... is blocked, missing, or shows a CSP violation, see "Content Security Policy" below.
  5. Check if the page is published. On platforms like Wix, Webflow, and Framer, custom code only runs on the published site, not in the editor preview.
  6. Clear your browser cache. Or open the page in an incognito window.

Content Security Policy (CSP)

If your site sends a Content-Security-Policy header, the browser will silently block the localbot widget unless you allow the localbot.io origin.

Signs of a CSP block:

  • Widget never renders, but the script tag is present in the HTML source.
  • Browser console shows: Refused to load the script 'https://www.localbot.io/...' because it violates the following Content Security Policy directive: "script-src ..."
  • The widget form submits but nothing happens (connect-src is blocking the POST).

Add https://www.localbot.io to both script-src and connect-src in your CSP. Example:

Content-Security-Policy:
  script-src 'self' https://www.localbot.io;
  connect-src 'self' https://www.localbot.io;

In Next.js this is typically set in next.config.ts under headers(). In Vercel, you can set it via vercel.json or a headers() config. In WordPress/other CMS, CSP is usually set at the hosting/CDN level (Cloudflare, nginx) rather than in the CMS itself.

Form submits but no SMS

  1. Check your phone number. Go to dashboard setup and verify your phone number is saved correctly, including the country code (e.g., +358).
  2. Check billing and usage. Go to dashboard billing and confirm the account is active and inside the included lead conversation limit.
  3. Check localbot setup. Go to dashboard localbot and confirm lead follow-up is enabled.

Widget appears but looks wrong

  1. CSS conflicts. If your site has aggressive global CSS resets, they may affect the widget. The widget uses scoped styles, but some !important rules can override them.
  2. Container too narrow. The widget has a max-width of 480px. If the container is narrower, the form will adapt, but it may look cramped below 300px.

Platform-specific issues

WordPress

  • Widget disappears after theme update: Use the localbot plugin instead of manual code insertion. Manual changes to footer.php are overwritten by theme updates.

Squarespace

  • Code Injection not available: Requires a Business or Commerce plan.

Wix

  • Widget doesn't appear in Wix editor: This is normal. Custom Code only runs on the published version of your site.

Shopify

  • Widget doesn't appear after adding to theme.liquid: Clear Shopify's cache by re-saving the theme, or wait a few minutes.

Still stuck?

Contact us on WhatsApp and we'll help you get set up.

Last updated: 2026-05-23. Maintained by Benjam Indrenius.

On this page

Cookie preferences

Essential cookies plus optional analytics. No ad cookies.