WordPress

Install the DGbot widget on your WordPress site in under 5 minutes — no plugin required.

~5 minutes Free

Method 1 — Theme footer.php

Edit your theme's footer.php to add the widget script. This is the recommended method if you're comfortable editing theme files.

1
Open your theme's footer.php

In the WordPress admin, go to Appearance → Theme File Editor → footer.php.

Edit in a child theme
If you edit the parent theme's footer.php directly, your changes will be overwritten when the theme updates. Use a child theme or use Method 2 instead.
2
Add the script before the closing body tag

Find the tag in footer.php and add the DGbot snippet immediately before it:

php
<!-- DGbot Widget -->
<script
  src="https://dgbot.dgtech.co.in/static/widget.js"
  data-chatbot-id="YOUR_CHATBOT_ID"
  defer
></script>
</body>
3
Click Update File

Save the changes. The widget now appears on every page of your WordPress site.


If you prefer not to edit theme files, use the free Insert Headers and Footers plugin by WPBeginner.

1
Install Insert Headers and Footers

In the WordPress admin, go to Plugins → Add New and search for "Insert Headers and Footers". Install and activate the plugin.

2
Open Settings → Insert Headers and Footers

In the WordPress admin sidebar, find Settings → WP Headers and Footers (or Insert Headers and Footers).

3
Paste the snippet in the Footer Scripts box

In the Scripts in Footer text area, paste the DGbot snippet:

html
<script
  src="https://dgbot.dgtech.co.in/static/widget.js"
  data-chatbot-id="YOUR_CHATBOT_ID"
  defer
></script>

Click Save.


Verify the install

Visit your WordPress site in a browser. You should see the DGbot chat launcher in the bottom-right corner.

If it doesn't appear:

  • Clear your browser cache and reload
  • Check for caching plugins (W3 Total Cache, WP Super Cache) that may be serving a cached version without the script — purge their cache after installing
  • Check the browser console for JavaScript errors