---
title: "Embedding Bookingbird in Wix"
description: "Learn how to add the Bookingbird SDK globally or on a specific page in Wix and use it to display a booking button or embed booking pages and services directly into your website."
url: https://help.bookingbird.io/en/articles/65-embedding-bookingbird-in-wix
collection: "Bookingbird JavaScript SDK"
updated: 2026-07-03
language: en
alternates: [de]
---

# Embedding Bookingbird in Wix

Learn how to add the Bookingbird SDK globally or on a specific page in Wix and use it to display a booking button or embed booking pages and services directly into your website.

#### 💡 Overview

The Bookingbird JavaScript SDK allows you to integrate your full booking experience directly into your Wix website.  
You can display a floating “Book now” button or embed booking pages, services, or resources anywhere on your site.

Because of how Wix handles scripts, the Bookingbird SDK should typically be added **globally** (so it’s loaded on every page).  
However, if you only want Bookingbird to appear on **one specific page**, you can also add the script there instead — see the note at the end of this article.

## 🌍 Step 1: Add the Bookingbird SDK Globally

#### 📋 Setup via Wix Dashboard

1.  Log in to your **Wix Dashboard** and open your site.
    
2.  Go to **Settings → Development & Integrations → Custom Code**.
    
3.  Click **\+ Add Custom Code**.
    
4.  Paste the following snippet:
    

```javascript
<!-- Bookingbird SDK Global Integration -->
<script>
  !(function () {
    if (!(window.Bookingbird = window.Bookingbird || []).invoked) {
      window.BookingbirdActions = [];
      var proxy = new Proxy({ invoked: !0 }, {
        get: function (target, name) {
          if (name === "invoked") return target.invoked;
          return function () {
            var args = Array.prototype.slice.call(arguments);
            window.BookingbirdActions.push({ e: name, a: args });
          };
        }
      });
      window.Bookingbird = proxy;
      var s = document.createElement("script");
      s.src = "https://cdn.bookingbird.io/latest/index.js";
      s.async = true;
      document.head.appendChild(s);
      window.Bookingbird.initialize({
        clientId: "your-client-id",
        options: { button: { visible: true, text: "Book now" } }
      });
    }
  })();
</script>
```

5.  Set **Add Code to Pages** → **All pages**.
    
6.  Choose **Place Code in** → **Head**.
    
7.  Click **Apply** and **Publish** your site.
    

Once published, the Bookingbird SDK will automatically load on all pages.  
If `button.visible` is set to `true`, a floating “Book now” button will appear by default in the bottom-right corner.

## ⚙ Step 2: Customize the Global Setup

You can modify how Bookingbird looks and behaves by updating the initialization options:

```javascript
window.Bookingbird.initialize({
  clientId: "your-client-id",
  options: {
    button: {
      visible: true,
      text: "Reserve now",
      position: "bottom-left",
      themeColor: "#FF3366"
    },
    widget: {
      width: 420,
      height: 600,
      borderRadius: 16
    }
  }
});
```

To hide the global button and only open the widget manually, set `button.visible` to `false`.

## 🔘 Step 3: Open the Widget from a Custom Wix Button (Optional)

If you’d like to trigger the Bookingbird widget from your own button instead of showing the floating button:

1.  In the Wix Editor, select your button.
    
2.  Enable **Dev Mode (Velo)**.
    
3.  Give the button an **ID**, e.g. `book-now-btn`.
    
4.  Add the following code to your page’s **Code Panel**:
    

```javascript
$w.onReady(function () {
  $w('#book-now-btn').onClick(() => {
    if (window.Bookingbird) {
      window.Bookingbird.open();
    }
  });
});
```

Now, when a visitor clicks your button, the Bookingbird widget opens.

## 🧱 Step 4: Embedding Bookingbird Components

Once the SDK is added (globally or per page), you can embed Bookingbird components directly into your Wix pages.

![](https://staticfiles.gleap.io/gattachments/xyFDZdbTk6XI7DjzV1w18MV7PcZDqtVblN49brjzbxD7TmJVDdLKlk9dlql9BJ71PL97FscaZtq.png)

#### Example Components

**Booking Page:**

```javascript
<bookingbird-page page-id="your-page-id" hide-navigation="true" hide-footer="true" height="auto" embed-frame="true"></bookingbird-page>
```

**Service:**

```javascript
<bookingbird-service service-id="your-service-id" width="100%" height="auto"></bookingbird-service>
```

**Resource:**

```javascript
<bookingbird-resource resource-id="your-resource-id" height="auto"></bookingbird-resource>
```

#### Add to Wix:

1.  In the Wix Editor, go to the page where you want the booking element.
    
2.  Click **Add → Embed & Social → Embed Code**.
    
3.  Paste the desired Bookingbird component code.
    
4.  Adjust the height (e.g., `600px`).
    
5.  Publish your site.
    

![](https://staticfiles.gleap.io/gattachments/u0iPTXYwCYRGABKq2No8cryi1J9NnQqhqKVMqW3sR6CeJDNO5GUrYfyqpFwYkCHt32fToUJ4hWP.png)

### ⚙ Common Attributes

Attribute

Description

<table data-id="e75eeb7f-8c0c-4201-beef-57f6c059f968" style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><td colspan="1" rowspan="1"><p data-id="be0a360b-1969-4e65-9e52-31cd5b72a34e"><code>hide-navigation</code></p></td><td colspan="1" rowspan="1"><p data-id="faa566c9-35d7-4ed4-ae35-a8a7ea2d9f99">Hides the navigation bar</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="697cdd18-788e-41dd-addf-cfdd01826f82"><code>hide-footer</code></p></td><td colspan="1" rowspan="1"><p data-id="5c82cb9c-e5dd-4647-baf2-58286c5ebf0f">Hides the footer section</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="19abd2c6-3060-49be-87ce-7bb861665415"><code>width</code> / <code>height</code></p></td><td colspan="1" rowspan="1"><p data-id="0c5890ca-644c-4089-9c82-7c7f61e76b2d">Sets the component size (default: 100% / 600px)</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="9270eb78-ca48-450d-8602-3eddeb604c2d"><code>height="auto"</code></p></td><td colspan="1" rowspan="1"><p data-id="d75ca4a2-787e-4283-8861-02961eac9efe">Automatically resizes the frame based on content</p></td></tr></tbody></table>

If you use `height="auto"`, Bookingbird will automatically adjust the iframe height via postMessage communication.

## 💡 Optional: Add the SDK Only on One Page

If you don’t want to load Bookingbird on every page:

1.  Open your **Wix Editor**.
    
2.  Navigate to the specific page where you want to use Bookingbird.
    
3.  Click **Add → Embed & Social → Embed Code**.
    
4.  Paste the same Bookingbird SDK snippet directly into that page:
    

```javascript
<script>
  !(function () {
    if (!(window.Bookingbird = window.Bookingbird || []).invoked) {
      window.BookingbirdActions = [];
      var proxy = new Proxy({ invoked: !0 }, {
        get: function (target, name) {
          if (name === "invoked") return target.invoked;
          return function () {
            var args = Array.prototype.slice.call(arguments);
            window.BookingbirdActions.push({ e: name, a: args });
          };
        }
      });
      window.Bookingbird = proxy;
      var s = document.createElement("script");
      s.src = "https://cdn.bookingbird.io/latest/index.js";
      s.async = true;
      document.head.appendChild(s);
      window.Bookingbird.initialize({
        clientId: "your-client-id",
        options: { button: { visible: true, text: "Book now" } }
      });
    }
  })();
</script>
```

5.  Save and publish your page.
    

This will load Bookingbird only on that specific page — ideal if you want to keep your site lightweight or only show Bookingbird in one place (e.g., your “Book Now” page).

### 🧰 Troubleshooting

-   Verify your **client ID** is correct.
    
-   Make sure the code is added in the **Head** section (or an HTML Embed if using per-page setup).
    
-   Republish your site if changes don’t appear — Wix may cache custom code.
    
-   Open your browser console and type `Bookingbird` — if it returns an object, the SDK is loaded successfully.
    
-   Ensure your site runs under **https://** (Bookingbird requires a secure connection).
