# Enable Live Chat on a Wix Website

Once you have generated the Cloud Voice Live Chat code snippet, you can drop it into your Wix site. The snippet needs to load just before the closing `</body>` tag of your pages. After the code is in place, a chat widget appears in the lower-right corner of every page you selected, letting visitors start a live conversation with your agents.

:::note
Wix also lets you embed the widget through the Wix Editor instead of the site's custom code area. See Wix's own documentation on embedding a site or widget for that approach.
:::

## Before you start

Make sure you have already [created a live chat channel](/pbx/contact-center-guide/set-up-a-live-chat-channel/) and copied its code snippet. The snippet is generated when you set up the channel, so complete that step first if you have not already.

:::caution
Paste the exact snippet from your live chat channel. If it is altered or incomplete, the widget will not load and visitors will see nothing.
:::

## Add the snippet in Wix

1. Sign in to your Wix account and open **Settings**.
2. Under the **ADVANCED** heading, select **Custom code**.

   ![Wix Settings page with the Custom code option under the Advanced section](/images/pbx/wix-advanced-setting.png)

3. In the upper-right corner, click **Add Custom Code**.
4. Fill in the dialog as follows, then click **Apply**:
   - **Paste the code snippet here**: Paste the Live Chat widget snippet you copied earlier.
   - **Name**: Give the code a label so you can recognize it later.
   - **Add Code to Pages**: Choose which pages should display the widget.
   - **Place Code in**: Choose **Body - end**.

   :::tip
   Use a clear, descriptive **Name** such as `Cloud Voice Live Chat`. If you later add other custom code snippets, a good label makes the right one easy to find.
   :::

   :::note
   **Body - end** tells Wix to insert the snippet right before the closing `</body>` tag, which is where the Live Chat widget expects to load. Leave the other placement options unchanged.
   :::

   :::caution
   **Add Code to Pages** controls where the widget shows up. If you limit it to a few pages, visitors on any other page will not see the chat option. Select all pages if you want site-wide chat.
   :::

## Result

Open your live Wix site. The Live Chat widget now sits in the bottom-right corner, ready for visitor conversations.
