How to add a chatbot to WordPress without a plugin

A chat bubble on a WordPress website after adding a script to the theme footer

To add a chatbot to WordPress without a plugin, copy the embed code from your chatbot’s Install tab and paste it either into a Custom HTML block on a single page, or into your theme’s footer so it appears on every page. The first is the safest.

WordPress setups vary (self-hosted, WordPress.com, block or classic themes), so treat the menu names as a guide.

Before you start

You need a published chatbot. If you do not have one yet, create a free AcquiChat account and follow how to set up a chatbot with AcquiChat.

Option 1: one page, with a Custom HTML block

  1. Open the page in the editor.
  2. Add a Custom HTML block.
  3. Paste the snippet from the Install tab. It is one line starting with <script.
  4. Update the page and view it live. The chat button appears at the corner.

This works on any plan that lets you use the Custom HTML block, and does not touch your theme.

  1. Take a backup, or use a child theme so theme updates do not remove your change.
  2. Open Appearance → Theme File Editor (on block themes you may use the Site Editor instead) and find the footer template, usually footer.php.
  3. Paste the snippet just before </body>.
  4. Save and check your site.

Some hosts disable the file editor, and WordPress.com only allows custom code on certain plans. If you cannot add code, use Option 1, or share the chatbot as a link.

Test it

Open your live site in a private window. Ask a question from your knowledge base. If you see no chat button, check that the chatbot is published, the snippet is complete, and any caching plugin is cleared.

Want to start before you edit anything?

Publish your chatbot and choose its chat page address in the Install tab, and the hosted chat page is ready. Share that link while you decide where to put the code.

Why not a plugin?

A plugin is fine if you prefer one. Skipping it means one less thing to update and nothing extra loading on every page.

After it works

Add your ten most common questions, read the conversations weekly, and fill the gaps. Leads reach your inbox with the conversation. For wording, see how to set up a chatbot for your contracting business.

Create your free chatbot and paste it into WordPress.

Frequently asked questions

Is it safe to edit my theme files?

Editing a theme directly can be undone by theme updates, and a mistake can break the site. Use a child theme, or take a backup first.

Can I add it to just one page?

Yes. Put the snippet in a Custom HTML block on that page instead of the footer.

WordPressWebsite buildersHosted chat pageChatbot setup

Keep reading

· 2 min read

How to add a chatbot to a Wix website

Add an AI chatbot to a Wix site in minutes: build the bot, copy the embed code, paste it into Wix custom code and check that it works.

· 2 min read

Can an AI chatbot answer my website FAQs?

Yes, if you give it your FAQs. How an AI chatbot answers from your content, what it does when it doesn't know, and how to keep it accurate.