Note: This method edits your theme. To keep changes across theme updates, use a Child Theme or the plugin method below.
Where to add
File: wp-content/themes/<your-theme>/header.php
, inside <head>
(above </head>
).
Pluro script (copy & paste)
<script type="text/javascript">(function(){var e=document.createElement('script');e.async=true;e.defer=true;e.setAttribute("type","text/javascript");e.setAttribute("src","https://my.pluro.ai/unitoolbar.js?lang=en");document.getElementsByTagName("head")[0].appendChild(e);})();</script>
Steps (Manual)
- Back up your theme.
- WordPress Admin → Appearance → Theme File Editor → open
header.php
. - Paste the script before
</head>
and update file. - Clear any caching plugin (WP Rocket, W3TC), server cache, and CDN.
Alternative (Plugin – safer)
- Install WPCode (formerly Insert Headers & Footers) or Code Snippets.
- Add a new Header snippet, paste the Pluro script, save & enable.
Verify
- View Source → confirm script is in
<head>
. - DevTools → Network →
unitoolbar.js
returns 200.
Troubleshooting
- Theme update removed code? Re-add or use a Child Theme / WPCode.
- Security/CSP plugins may block external scripts → allow
my.pluro.ai
. - Purge all caches after editing.