onepard
Guide

How to add an AI assistant to WordPress

Check your WordPress setup, create your Onepard assistant, and add the website code through your header or footer settings.

Try it with your website 7 days free · No payment card needed

Check which WordPress setup you use

WordPress websites can run on WordPress.com or with another hosting company. That affects who can install plugins and add website code. Sign in to the account that manages your website and check those permissions first.

Onepard creates an assistant from your website. You add it to WordPress using a small piece of website code. A header-and-footer plugin gives you a place to save that code.

Check which WordPress setup you use
Your websiteWhat to check
WordPress.comIts current documentation supports header and footer code on Personal, Premium, Business, and Commerce plans. Hosting features must be active for the website code to run.
WordPress with another hostCheck that your account can install plugins or use an existing header-and-footer code tool. Your host may apply its own restrictions.

Prepare your assistant in Onepard

Open Get started and enter the published WordPress website address where visitors will use the assistant. After signing in, you can paste extra details in Business information and check page statuses. A business started with pasted information only can use its shareable chat page, with no dashboard setting to add a website later.

In Chat settings, select Open your chat when information is ready. Ask about an offering, its price, and a common policy. A course business could ask about the difference between two courses. Check each answer against the details you publish and add missing information before directing visitors to it.

Add the website code

  1. Copy your Onepard code

    In Chat settings, find Add it to your website. Choose Corner chat bubble or Bottom chat box and select Copy. The copied code already identifies your selected business.

  2. Open a header-and-footer tool

    Use the tool your site already provides. WordPress.com’s documented method uses the free WPCode Insert Headers and Footers plugin. With permission to add plugins, install and activate it, then open Code Snippets followed by Header & Footer.

  3. Paste and save

    Add the complete Onepard code to the Footer box, keeping any existing code there. Select Save Changes. Use one site-wide placement so the assistant is added consistently across your public pages.

  4. Check the public website

    Open your published website in a private browser window. If your host or a plugin caches pages, clear that cache so visitors receive the change. Open the assistant and send a question.

Check more than the homepage

Visit a service or course page and ask about the offering shown there. Then ask a question about the business as a whole. Check the answers and any links against your published details. The page being viewed helps the assistant understand a question, while its available business information remains important.

Try the same journey on a phone. Check that the assistant opens, the keyboard leaves room to send a message, and visitors can still reach your site’s own navigation. If enquiries matter to your business, submit a labelled test request and check it in Enquiries.

Common WordPress problems

These steps follow WordPress and WPCode documentation checked on 7 November 2026. Your theme, host, plugins, and plan can affect the result. Complete the published-site checks for your own setup before considering installation finished.

  • Code disappears after saving. On WordPress.com, check both your paid plan and activated hosting features, then paste the code again.
  • The code appears as text. Move it to the header-and-footer tool and remove the copy from the page editor.
  • The assistant appears on only one page. Check whether you used a page-only placement instead of the site-wide Footer box.
  • A saved change is missing. Clear the site cache and check the public URL while signed out. Browser extensions can also affect what you see.
  • Chat says it is unavailable on this website. Test on the published website address used at setup. A local test site, preview address, or different website may not be accepted.

Sources and further reading

These links point to the providers’ own information. Their plans and settings may change.