sparrowdesk-logo-transparent-1.png
Go to sparrowdesk.com
Home
SparrowDesk Overview
  • Overview of SparrowDesk
  • Feature Overview in SparrowDesk
  • SparrowDesk Glossary
Getting Started
  • Setting Up Account Details
  • Default Business Hours
  • Understanding and Creating Teams
  • Inviting Team Members to the Platform
  • Roles and Permissions
  • Single Sign-On
  • Brands in SparrowDesk
  • Getting Started FAQs
  • Use a custom domain for your support portal
Inbox
  • Understanding the Inbox in SparrowDesk
  • Managing Custom Views in Inbox
  • Live Chats in Inbox
  • Staying on Top of New Messages from Customers
  • Conversation Fields in SparrowDesk
  • Merging Conversations in SparrowDesk
  • Adding Watchers to a conversation
  • Round Robin assignment explained
  • Export Conversations as CSV
  • Bulk update fields
  • Forward a Conversation to an External Contact
  • Common Email Delivery Errors
Channels
  • Setting Up Email as a Support ChannelConnect your custom email address How do I send and receive emails via SMTP and IMAP ? How do I find my SMTP/IMAP server address and port number? Common Errors while Connecting through SMTP/IMAPHow to Prevent Emails From Going to Spam Email Signatures
  • Installing Chat Widget Chat Widget Installation on WordPressInstall the Chat Widget on ShopifyCustomising Chat WidgetEmbedding and Configuring the SparrowDesk Chat WidgetChat Widget SettingsWhy End Users Don’t Always See Their Chat HistoryTrack page visits in SparrowDesk
Contacts
  • Contacts in SparrowDesk
  • How to manage contact segments
  • Deleting and Blocking Contacts in SparrowDesk
  • Contact Fields in SparrowDesk
Reports
  • Conversation Report
  • Team Performance Report
  • Understanding the AI Agent Report in SparrowDesk
  • Viewing CSAT reports in SparrowDesk
  • Reports FAQ
  • Exporting Reports as PDF
Automation
  • Macros
  • Business Hours
  • Service-Level Agreements (SLAs)
  • Setting up CSAT (Customer Satisfaction) in SparrowDesk
Zoona AI
  • AI Suggested replies in your Inbox
  • AI-Generated Chat Subjects
  • Zoona AI Knowledge Improvements
  • Introduction to AI AgentAI Agent - Configure PersonaTraining your AI AgentZoona AI Agent CommandsAI Agent - Deploying on chatAI Agent - Deploying on EmailHow to Create a Command Zoona AI Agent - FAQUnderstanding AI resolutions in SparrowDesk
Workflows
  • Automate repetitive tasks through Workflows
  • How to Create a Workflow
  • Workflow Blocks Library
Help Centre
  • Write Knowledge Articles for your Help Centre and AI Agents
  • Setting Up and Customizing Your Help Center
  • Use a Custom Domain for Your Help Center
  • Make Your Help Centre Discoverable in Search results
  • Adding Google Tag Manager to your Help Center
  • Creating a Ticket Form Setting up Customer Portal
Billing
  • How does SparrowDesk pricing work?
  • What is Seat ?
  • Manage your Billing and Invoices
  • About Sales Tax
  • How to cancel your subscription
  • Frequently Asked Questions
  • AI Co-pilot and AI Resolution billing
  • SparrowDesk Startup Program
Apps and Integrations
  • Okta Single Sign on setup for SparrowDesk
  • Integrating HubSpot with SparrowDesk
  • Integrating SurveySparrow with SparrowDesk
  • Integrating SparrowDesk with Zapier
  • Connecting SparrowDesk with Attio
  • Connecting SparrowDesk with Linear
  • Integrating SparrowDesk with Jira
  • Connecting SparrowDesk for Gmail
  • Integrating SparrowDesk with Notion
  • Integrating SparrowDesk with Slack
  • Integrating SparrowDesk with Shopify
  • Connect WhatsApp to SparrowDesk

Chat Widget Installation on WordPress

Timer3 min read
VaishaliVaishali

Adding the SparrowDesk chat widget to your WordPress site lets your customers reach your support team directly from any page. This article walks you through installing the widget on your WordPress site in a few simple steps.

Setting up the chat widget can be a slightly technical- connect with the technical person in your company if you need help.

Find and Copy Your Chat Widget Code

First, grab your widget code from SparrowDesk:

  • Go to Settings → Chat Widget → Installation
  • Click "Copy Code" to copy the JavaScript snippet to your clipboard

Image

Add the Code to Your WordPress Site

There are two ways to add the widget code to WordPress. Use whichever method suits your setup.

Option A- Using a Plugin (Recommended, No Coding Required)

This is the easiest method and doesn't require editing any theme files.

  1. In your WordPress Admin, go to Plugins → Add New
  2. Search for "Insert Headers and Footers" and install and activate it
  3. Go to Settings → Insert Headers and Footers
  4. Paste the SparrowDesk code in the Scripts in Footer section
  5. Click Save

Image

Image

Option B- Editing Your Theme Directly

If you're comfortable editing theme files:

  1. In your WordPress Admin, go to Appearance → Theme File Editor
  2. In the right panel, open footer.php
  3. Paste the SparrowDesk code just before the closing </body> tag
  4. Click Update File

The widget will now appear on every page of your WordPress site.

Image

Verify the Installation

Once you've added the code:

  1. Visit your site in a browser- you should see the chat widget appear in the corner of the page
  2. Return to Settings → Chat Widget → Installation in SparrowDesk
  3. If the widget is detected, you'll see "Widget Installed"

Image

Allowlist Your WordPress Domain (Recommended)

To make sure your widget code can only be used on your site, restrict it to your WordPress domain:

  • Go to Settings → Chat Widget → Make your Chat Widget Secure
  • Add your site's domain, e.g. www.yoursite.com
  • Click Save

Image

What to know:

  • You don't need to include https:// or a trailing slash
  • If no domain is added, your widget will be usable on any website- we strongly recommend allowlisting your site's domain
  • There is no limit to the number of domains you can add

Troubleshooting

  • Widget not showing? Make sure the code is placed before the </body> tag and that the file has been saved correctly.
  • Using Option A but the widget still not appearing? Check that the plugin is activated and that the snippet is in the Footer section, not the Header.
  • Using a page builder like Elementor or Divi? These builders sometimes manage their own footer- refer to your page builder's documentation for adding custom scripts, or use Option A instead.

FAQ

  1. Do I need a developer to do this?
    Not if you use Option A. The plugin method requires no coding- just install, paste, and save.
  2. Will this slow down my site?
    The widget script loads asynchronously, so it doesn't block your pages from loading. Your site speed is not affected.
  3. I switched themes- why did the widget disappear?
    If you used Option B, the code was added to your previous theme's files. Switching themes replaces those files. Use Option A to avoid this, or re-add the snippet to your new theme's footer.php.
  4. Can I use the same widget code on another site too?
    Yes. The same code works across multiple sites. If you've allowlisted domains, add the new domain to your list in Settings → Chat Widget → Make your Chat Widget Secure.
  5. What's the difference between the Header and Footer sections in the plugin?
    The SparrowDesk snippet should always go in the Footer section. Scripts in the header load before the page content, which can slow things down- footer placement is faster and is what SparrowDesk recommends.



Powered By SparrowDesk

Table of ContentsOn this page