Home/AI Assistant Deployment/Add Script via footer.php

Part of WordPress Integration — 1 of 4.

Add the Widget Script to footer.php

Adding the script to footer.php makes the floating launcher button appear on every page of your site.

  1. Go to Appearance > Theme File Editor.WordPress admin sidebar with Appearance expanded, showing the Theme File Editor link

    Theme File Editor link under the Appearance menu.

  2. In the file list on the right, click Theme Footer (footer.php).Theme File Editor page with the file list on the right, showing the Theme Footer (footer.php) link

    The Theme Footer (footer.php) link in the file list.

  3. Find the line <?php wp_footer(); ?> near the bottom. Paste your ZipTier script tag immediately above it — not after it, and not after </body>.footer.php open in the Theme File Editor, showing the wp_footer() call near the bottom of the file

    footer.php open in the editor, with wp_footer() near the bottom.

<?php astra_body_bottom(); ?>
<script
  src="https://chat.ziptier.ai/wgt/script/latest.js"
  data-chat-url="https://chat.ziptier.ai/bt/v1?id=YOUR_CAMPAIGN_ID"
  data-button-animation="bounce">
</script>
<?php wp_footer(); ?>
  </body>
</html>

Replace YOUR_CAMPAIGN_ID with the ID from your campaign link. Click Update File to save. The floating widget button now appears on every page of your site — clicking it opens the AI Assistant:

ZipTier AI Assistant opened on the front end of a WordPress site after clicking the floating launcher button

The AI Assistant open on the live site after clicking the launcher.

No Theme File Editor access? Some hosts and security plugins disable it. See Adding the Script via WPCode for a plugin-based alternative that needs no direct file editing.


← WordPress Integration overview  |  Next: Adding the Script via WPCode →