# How to add chat widget to WordPress

LOGIN TO WORDPRESS

Login to your WordPress or WooCommerce Admin section
(E.g. https://yourWordpressWebsite/wp-admin/
[http://yourWordpressWebsite/wp-admin/]). Select Plugins. Click on Add
New option.


INSTALL THE PLUGIN

Search for "Collectchat" in the Keyword space. Select the Collect.chat WordPress
plugin and click Install.






ACTIVATE THE PLUGIN

After installation, find the Collect.chat WordPress plugin and click
on Activate.






COPY THE CODE SNIPPET

Login into your Collect.chat account [https://dashboard.collect.chat/login]. Go
to Edit.





Click on Share.



Please make sure you have selected Widget as your Form type
under Settings > General.



Select the type of your website. Here, we will choose Wordpress. Select Widget
if you would like to use the chat widget on your website. Then, copy the code
snippet of your chat widget.

If you will be embedding the form in your web page, you can click on Embed and
copy the URL.


EDIT PLUGIN SETTINGS

Click on Settings of the plugin.





Add the code snippet of the chat widget in the space provided.






PREVIEW ON WEBSITE

You're done! Now all visitors to your WordPress website will be able to see the
chat widget.







Tips

 * How to control the behaviour of the bot in WordPress?
   [https://collect.chat/help/article/1134-in-wordpress-how-can-i-control-the-behaviour-of-the-bot]
   
   

 * How to add a different chatbot on different posts or pages of the WordPress
   website?
   [https://collect.chat/help/article/1133-in-wordpress-how-can-i-add-a-different-chatbot-for-a-different-page]
   
   

 * How can I embed a chatbot inside a page or a post?
   [https://collect.chat/help/article/1135-in-wordpress-how-can-i-embed-a-chatbot-inside-a-page-or-a-post]
   
   

 * How to trigger a bot from a WordPress Menu?
   [https://collect.chat/help/article/1137-how-to-trigger-a-bot-from-a-wordpress-menu]
   
   

Note



Keep in mind that if you’re using a caching plugin in WordPress, it may take a
few hours for the Collect.chat widget to show up on your site. If it isn’t
showing up, try clearing your cache and that should get it live.



Warning



If you are on wordpress.com, you need to upgrade to business plan to be able to
install any plugin. There could be other reasons that prevent you from
installing Collect.chat plugin. They are listed here
[http://www.wpbeginner.com/plugins/why-cant-i-add-or-install-plugins-in-wordpress/].