Install on WordPress
Add the widget snippet through a code plugin or your theme, and verify it loaded.
در این صفحه
To let visitors to your WordPress site contact you in chat, add GetMyBot’s widget code. Copy the complete snippet from Widget → Install in GetMyBot. The script loads the chat button.
Before installing it, add your site address to Allowed sites. For example, if the page is https://example.com/catalog, enter https://example.com without /catalog. See Site widget for chat settings.
Where to paste the snippet
WordPress has no single official place for this — it depends on your theme and plugins. Two common options:
- A header/footer code plugin (for example "Insert Headers and Footers" or a similar snippet plugin) with an explicit field for
<head>code. - Editing the active theme's
header.phpdirectly (Appearance → Theme File Editor, or your child theme's file), pasting the snippet right before</head>.
Choose the option available in your theme or plugin. The <head> field is for technical page code; do not put the widget code in a text block. Paste the complete snippet without changes.
Verify the installation
Save the change.
Open the published page as a visitor, click the chat button, and send a test message. It should appear in Chats in GetMyBot. Seeing the code on the page alone does not confirm that messages arrive.
Then open Widget → Install in GetMyBot and run Check installation against the live page. Automatic diagnostics explains the widget readiness result.
Common pitfalls
- A caching plugin (or a host-level cache) can keep serving the old page without the snippet — clear the page cache after saving.
- A code-compression plugin can change the
<script>block so the widget stops loading. If this happens, exclude the widget script from that plugin's processing. - Editing the parent theme's
header.phpis lost on the next theme update — use a child theme or a plugin instead.