Add live chat to WordPress

The Pidge Live Chat plugin adds the chat to every public page of your site. You paste in your website ID and that's it. No theme files to edit.

Works on WordPress 6.3 and newer, with any theme.

Before you start

The plugin is in review for the WordPress plugin directory. Until it's listed, use the snippet with a header and footer plugin instead.

Install the plugin

  1. In WordPress, go to Plugins → Add New Plugin.
  2. Search for Pidge. Find Pidge Live Chat, click Install Now, then Activate.
  3. Go to Settings → Pidge Live Chat.
  4. Paste your website ID and save.

The same settings page has a few options:

Without the Pidge plugin

Any plugin that adds code to every page will do. A common one is WPCode, listed in the plugin directory as Insert Headers and Footers by WPCode.

  1. Install and activate WPCode from Plugins → Add New Plugin.
  2. Go to Code Snippets → Header & Footer.
  3. Paste the snippet into the Footer box and click Save Changes.
HTML
<script>window.$pidge = []; window.PIDGE_WEBSITE_ID = "YOUR-WEBSITE-ID";</script>
<script src="https://app.pidge.chat/client/l.js" async></script>

Your own copy is in the Pidge inbox under Websites, in Code for your website, with your website ID already filled in. Copy it from there.

Avoid pasting it straight into your theme's files. A theme update replaces them, and the chat disappears with your edit. Block themes have no box for this at all.

List your domains in Pidge

The chat only connects on domains you've listed for the website. In the inbox, open Websites and put each domain on its own line in Domains. Subdomains are included, so example.com also covers www.example.com.

Add the domain your site runs on. If you also want the chat on a staging copy with a different address, add that one as well.

Check that it works

  1. Log out, or open your site in a private window. If you ticked the option to hide the chat from administrators, you won't see it while logged in.
  2. The chat bubble should be in the bottom corner. Send yourself a message and answer it from the inbox.
  3. In the inbox, the website's Not installed yet label goes away after the first visit from a listed domain.

If the bubble shows but the chat won't connect, the domain you're on isn't in the website's list in Pidge. If there's no bubble at all, the snippet isn't on the page, or the platform is still serving an older copy of it.

Using a caching plugin? Clear its cache after you save, or visitors may get pages from before the chat was added.

Other platforms

Stuck, or did a step look different on your screen? Tell us in the chat on this page.

Get your website ID

Start free

The free plan covers one website and two people replying. No card needed.