# Add the chat to your website

> Put your assistant's chat button on your website (Salla, Zid, Shopify, WordPress, Wix or any site), or share a chat link if you don't have a website.

There are two ways for customers to reach your assistant:

- **On your website:** a chat button in the corner of every page.
- **With a chat link:** no website needed. Put the link in your Instagram bio, your WhatsApp Business profile or greeting message, or anywhere you share it.

Both are in your assistant's page under **Add to website**, and in the last step of the setup.

:::note
Customers chat with the **published** version of your assistant. If your assistant page says you have changes that aren't published, press **Save and publish** first.
:::

## On your website

1. Type your website address, like `mystore.com`, and press **Get my code**. The code only works on that website. Both `mystore.com` and `www.mystore.com` are included.
2. Choose where your website is built.
3. Copy the code and follow the steps for your platform.
4. Open your website. The chat button appears in the corner, and the dashboard shows **Your chat is live**.

### Salla

1. Open your Salla dashboard and go to your store's design settings (تصميم المتجر).
2. Choose to customize the theme with code (تخصيص الثيم باستخدام الأكواد), and open the JavaScript part. Salla's own guide is [here](https://help.salla.sa/article/%D8%AA%D8%AE%D8%B5%D9%8A%D8%B5-%D8%A7%D9%84%D8%AB%D9%8A%D9%85-%D8%A8%D8%A7%D8%B3%D8%AA%D8%AE%D8%AF%D8%A7%D9%85-%D8%A7%D9%84%D8%A3%D9%83%D9%88%D8%A7%D8%AF/nh50c1dsu3w8pu1mbl62k4dw).
3. Paste the code, then save. For Salla the dashboard gives you the **JavaScript version** of the code.

### Zid

Look in your Zid dashboard for the setting that adds custom code or scripts to your store. Paste the code there and save. If you can't find it, your plan may not allow custom code. In that case, send the steps to Zid's support or to your developer.

### Shopify

1. In your Shopify admin, go to **Online Store → Themes**.
2. Next to your current theme, click **⋯**, then **Edit code**.
3. Open **theme.liquid** (under Layout).
4. Find `</body>` near the end of the file, and paste the code just above it.
5. Click **Save**.

### WordPress

1. Go to **Plugins → Add New**, search for **WPCode**, then install and activate it.
2. Go to **Code Snippets → Header & Footer**.
3. Paste the code in the **Footer** box, then click **Save Changes**.

### Wix

1. In your Wix dashboard, go to **Settings → Custom Code** (under Advanced). This needs a Premium plan and a connected domain.
2. Click **+ Add Custom Code** and paste the code.
3. Choose **All pages**, and place the code in **Body - end**.
4. Click **Apply**, then publish your site.

### Any other website

Paste the code just before `</body>` on every page. Most website builders have a setting for this, called something like *custom code*, *footer code* or *scripts*.

### My developer will do it

Press **Email these steps to my developer**. They get the code, both versions of it, and a link to the technical guide.

## With a chat link

1. Choose **Chat link: no website needed**, then press **Get my chat link**.
2. Press **Copy link**.
3. Put it in your Instagram bio, your WhatsApp Business profile or greeting message, Snapchat, Google Maps, or anywhere customers find you.

When a customer taps it, the chat opens. On a phone it fills the screen.

## The chat button doesn't appear

- **Did you publish?** Customers see the published version.
- **Is it the same address?** The code works only on the website address you typed. If your store also opens on another address, add it from **Add to website → Change website**.
- **Did you save?** Most platforms need **Save** or **Publish** after you paste code.
- **Is it cached?** Reload the page, or open it in a private window.
- **Lost the code?** For your security, the code is shown only once. Press **Get a new code**. The code already on your website keeps working.
