# Wix (/developers/platforms/wix)



There are three ways to take bookings from a Wix site. A link to your booking page works on every Wix site and needs no code. Booking on a page and Book Now buttons keep customers on your site, but we have not been able to try them on a live Wix site yet, so test them carefully before you rely on them.

<IntegrateNow host="wix" />

The wizard writes the code below with your own Location ID and booking page address already in it. If you would rather do it by hand, read on.

Before you start [#before-you-start]

* **Your booking page address.** In the Resytech dashboard, click your name in the top right, choose **Location Settings**, then open **Booking Domain**. The address has to show **Verified**. See [Booking Page Address](/docs/getting-started/booking-page-address).
* **Your Location ID**, for anything other than a plain link. In the dashboard, click your name in the top right and choose **Location Settings**. The ID is at the top of the page with a copy button.
* **For Book Now buttons, a published site with a connected domain**, which needs a paid Wix plan. Wix only runs custom code on a site with its own domain.

<Callout type="warn" title="Test on the published site">
  Wix does not run custom code in the editor or in Preview. Publish, then test on your live site.
</Callout>

A link to your booking page [#a-link-to-your-booking-page]

This is the dependable option. Customers click a button and book on your booking page.

Select your button, or add one. In Wix Editor, click the link icon and choose **Web address**. In Wix Studio, open **Settings** and use **Links to**. Paste your booking page address, for example `https://yourbusiness.bookingui.com`. Add `/YOUR_ACTIVITY_ID` to go straight to one activity, or `/gift-cards` for gift cards. Click **Done**, then **Publish** your site.

Booking on a page [#booking-on-a-page]

This places the booking calendar inside one of your pages. Wix shows pasted code inside a frame of a fixed size, so the whole block goes in one place and you set its height yourself.

<Steps>
  <Step>
    Add an HTML embed [#add-an-html-embed]

    In the editor, add an HTML embed where the booking should appear:

    * **Wix Editor:** **Add Elements**, **Embed Code**, **Embed HTML**
    * **Wix Studio:** **Add Elements**, **Embed & Social**, **Embed Code**
    * **Wix Harmony:** **Add**, **Elements**, **More Options**, **Embed**, **Embed code**
  </Step>

  <Step>
    Paste the booking code [#paste-the-booking-code]

    Click **Enter Code** (in Harmony, the **Settings** icon), paste this in with your own Location ID and booking page address, and click **Apply**.

    ```html
    <script src="https://js.resytech.com/1/resytech.js"></script>
    <script>new ResytechApi().registerComponents();</script>
    <resytech-booking-embed
      base-url="https://yourbusiness.bookingui.com"
      location-id="YOUR_LOCATION_ID">
    </resytech-booking-embed>
    ```

    To show one activity, add `activity-id="YOUR_ACTIVITY_ID"` to the last tag.
  </Step>

  <Step>
    Give it room [#give-it-room]

    Stretch the element across the page and make it tall, about 1,000 pixels. Wix keeps it at the size you set, so a short one shows scroll bars. Then **Publish** your site.
  </Step>

  <Step>
    Test it [#test-it]

    Open the page on your published site. The booking calendar should appear where you placed the embed. Make one test booking from start to finish, including payment, and check nothing is cut off.
  </Step>
</Steps>

Book Now buttons [#book-now-buttons]

A button opens booking on top of your page. Wix buttons can only be given a link, so the booking script watches for links that end in `#book`.

<Steps>
  <Step>
    Add the booking script to your site [#add-the-booking-script-to-your-site]

    In your Wix site dashboard, open **Settings**, then **Custom Code**. It is in the **Development & integrations** section, which older dashboards call **Advanced**.

    Click **+ Add Custom Code** and paste this in, replacing `YOUR_LOCATION_ID` and the booking page address with your own. Give it a name such as `Resytech booking`. Choose **All pages**, set it to load once, and under **Place Code in** choose **Head**. Click **Apply**.

    ```html
    <script
      src="https://js.resytech.com/1/resytech.js"
      data-resytech-location-id="YOUR_LOCATION_ID"
      data-resytech-base-url="https://yourbusiness.bookingui.com"
      data-resytech-links="true"></script>
    ```
  </Step>

  <Step>
    Point a button at a booking link [#point-a-button-at-a-booking-link]

    Select your button, or add one. In Wix Editor, click the link icon and choose **Web address**. In Wix Studio, open **Settings** and use **Links to**. Wix wants a full address, so put your own website address in front of one of these endings, for example `https://www.yoursite.com/#book`:

    | Link ending               | What it opens                                                                                    |
    | ------------------------- | ------------------------------------------------------------------------------------------------ |
    | `/#book`                  | The full booking flow, where customers choose an activity first                                  |
    | `/#book-YOUR_ACTIVITY_ID` | One activity. The ID is the last part of the address when you open the activity in the dashboard |
    | `/#gift-card`             | Gift card purchase                                                                               |

    Choose to open the link in the **current window**. Click **Done**, then **Publish** your site.
  </Step>

  <Step>
    Test it [#test-it-1]

    Open your published site and click the button. The booking window should open on top of the page. If the button reloads the page instead, use a link to your booking page and tell Resytech support what happened.
  </Step>
</Steps>

Slide-in panel instead of a pop-up [#slide-in-panel-instead-of-a-pop-up]

To have booking slide in from the side of the page, add one line to the script tag:

```html
<script
  src="https://js.resytech.com/1/resytech.js"
  data-resytech-location-id="YOUR_LOCATION_ID"
  data-resytech-base-url="https://yourbusiness.bookingui.com"
  data-resytech-presentation="drawer"
  data-resytech-links="true"></script>
```

Troubleshooting [#troubleshooting]

<Accordions type="single">
  <Accordion title="The button reloads the page or opens a new tab">
    Check the link is set to open in the current window and ends in `#book` exactly. If Wix still handles the click itself, use a link to your booking page. It needs no code.
  </Accordion>

  <Accordion title="Custom Code is missing or will not save">
    Custom code needs a published site with a connected domain. Wix ties the code to the domain, so if you change domains you have to add it again.
  </Accordion>

  <Accordion title="It does not work in the editor or in Preview">
    That is expected. Wix only runs custom code on the published site.
  </Accordion>

  <Accordion title="The booking is cut off or has its own scroll bar">
    Make the embed element taller in the editor and publish again. Wix does not resize it to fit.
  </Accordion>

  <Accordion title="The booking window opens but stays blank or shows an error">
    The booking page address in the code has to match your address in the dashboard exactly, including `https://`. In the dashboard, click your name in the top right, choose **Location Settings**, open **Booking Domain** and check the address shows **Verified**.
  </Accordion>

  <Accordion title="I need to see what the script is doing">
    Add `data-resytech-debug="true"` to the script tag in Custom Code, publish, reload the page and open the browser console. Remove it again once things work.
  </Accordion>
</Accordions>

How this guide was checked [#how-this-guide-was-checked]

The menu names were checked against Wix's help pages on 9 November 2026, for Wix Editor, Wix Studio and Wix Harmony. We have not yet run these steps on a live Wix site. Still to be confirmed there:

* Whether the button link tool keeps the `#book` ending, and whether Wix lets the booking script handle the click.
* Whether booking embedded on a page can finish a payment, including Apple Pay and Google Pay, from inside the frame Wix puts around pasted code.

A link to your booking page does not depend on either.

Related [#related]

* [Add Booking to Your Website](/developers/integrate): the wizard that writes this code for you
* [Installation](/developers/installation): everything the script tag can do
* [Embed Booking UI](/developers/embed-booking-ui): more options for booking on a page
