> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chatling.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# WordPress

> Learn how to add Chatling to your WordPress website

## Method 1: Install using a plugin

1. Go to your dashboard.
2. Click `Deploy` button in the sidebar menu.

![Open Deploy page](https://chatling-assets.b-cdn.net/deploy-ai-agent.jpg)

3. Click the `Manage` button under the `Website Widget` option.

![Manage website widget](https://chatling-assets.b-cdn.net/manage-website-widget-chatbot.jpg)

4. Design the appearance of the widget by clicking the `Open widget settings` button.

![Open website widget designer](https://chatling-assets.b-cdn.net/open-website-widget-designer.jpg)

5. Select the display mode for your chatbot, such as "Floating Chat", "Inline", or "Fullscreen".

![Configure website widget display type](https://chatling-assets.b-cdn.net/configure-website-widget-display-type.jpg)

6. Copy the widget code.

![Copy widget code](https://chatling-assets.b-cdn.net/website-widget-code.jpg)

7. In your WordPress dashboard, go to `Plugins` > `Add new plugin`.

![Add new plugin](https://chatling-assets.b-cdn.net/add-new-plugin-wordpress.jpg)

8. Search for the `Insert Headers And Footers` plugin and install the one by WPBrigade.

![Insert Headers And Footers plugin](https://chatling-assets.b-cdn.net/install-insert-header-footer-plugin-wordpress.jpg)

9. Once installed, activate the plugin.

10. Go to `Settings` > `WP Headers and Footers` from the sidebar.

![Open WP Headers and Footers settings](https://chatling-assets.b-cdn.net/open-wp-headers-footers-settings.jpg)

11. Paste the chatbot widget code in the header section.

![Add chatbot widget code in the header section](https://chatling-assets.b-cdn.net/paste-widget-code-in-wp-headers-footers.jpg)

12. Click `Save Changes`.

## Method 2: Install using the theme editor

1. Follow steps 1-6 from Method 1 to copy the widget code.

2. Open your WordPress dashboard.

3. From the sidebar menu, select `Appearance` > `Theme File Editor`.

![Open theme file editor](https://chatling-assets.b-cdn.net/open-wordpress-theme-file-editor.jpg)

4. Under the `Theme Files` section (right side of the screen), search and open the `header.php` file.

![Edit theme header](https://chatling-assets.b-cdn.net/open-theme-header-editor-wordpress.jpg)

5. Paste the widget code before the closing `</head>` tag.

![Embed code in header](https://chatling-assets.b-cdn.net/paste-widget-code-in-theme-header-file.jpg)

6. Click `Update File` to save.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.