Add a booking widget to your Wix website
Create a booking form in minutes and accept direct reservations with ease. Paste one line of code into Wix Custom Code and a full booking flow — availability calendar, guest details, rental agreement, and Stripe payment — slides out over your page. No apps, no developer, no design changes. No Book button on your site? The widget adds its own floating one.
5-day free trial · Live in minutes · Payments go to your Stripe
A booking form that respects your Wix design
Your Wix site already looks great. The booking widget slides out over it — it never pushes your layout around or forces a clunky embedded calendar into the page.
Opens from your own button
Point the widget at your existing "Book" or "Request dates" button. Clicking it slides the booking form out from the side. No second button, no clutter.
Or a floating button, no setup
No Book button on your Wix site? Leave data-trigger off and the widget drops its own floating "Book now" button into the corner of every page.
Full booking flow inside
Guests pick dates on a live availability calendar, enter details, accept your rental agreement, and pay with Stripe — all without leaving your Wix page.
Mobile-first and on brand
On phones the drawer becomes a full-screen sheet. The booking content uses your DirectBookings colors and fonts; set the launcher accent with one attribute.
How to add the booking widget to Wix
Four steps, about five minutes, no code experience needed
Copy your one-line widget code
In DirectBookings, open Website Builder → Embed → Slide-out Booking Drawer. Your website ID is already filled in. Copy the script.
Open Wix Custom Code
In the Wix Editor, go to Settings → Custom Code → + Add Custom Code. Paste the script, name it, and choose to load it on All pages in the Body - end placement so it works site-wide.
Point it at your Book button — or go floating
Set data-trigger to your button's CSS selector, e.g. "#book-now". If your Wix site has no Book button, leave data-trigger out and a floating "Book now" button appears automatically on every page.
Apply and publish
Click Apply, then Publish your Wix site. Click your button (or the floating one) — the booking drawer slides out. Try a test booking to confirm dates, the rental agreement checkbox, and Stripe payment all work.
The code you paste
Copy the exact version with your website ID pre-filled from your dashboard. This is the shape of it:
<script src="https://your-subdomain.directbookinghost.com/embed-drawer.js" data-website="YOUR_WEBSITE_ID" data-trigger="#book-now" data-position="right" data-accent="#c8a04f" data-header="Book your stay" defer ></script>
data-trigger
The CSS selector of the button that opens the drawer, like #book-now or .request-dates. Omit it to get a floating fallback button.
data-position
right (default) or left — which side the drawer slides out from.
No Book button? Use the floating button
Many Wix templates don't have a dedicated Book button. Just leave data-trigger off and the widget adds its own floating "Book now" button to every page — no element to wire up.
<script src="https://your-subdomain.directbookinghost.com/embed-drawer.js" data-website="YOUR_WEBSITE_ID" data-label="Book now" data-accent="#c8a04f" defer ></script>
data-label
The text on the floating button (default Book now). Set it to Check availability or Reserve to match your voice.
See it live
Try the floating button on a sample property site in the floating button demo.
Prefer to use the Wix AI assistant? Paste this prompt
Wix Studio includes an AI assistant that can add custom code and behaviors. Paste this prompt, swap in your real values from the dashboard, and it will place the script. On the classic Wix Editor you add it yourself under Settings → Custom Code — same one-line paste.
Add this booking widget script to my Wix site using the AI assistant / custom code. Load it on all pages in the "Body - end" placement so it runs site-wide. Keep the script's src and data-website exactly as given. If my site has a "Book" or "Request dates" button, give it the id "book-now" and set data-trigger="#book-now" so the widget opens when it is clicked. If there is no Book button, leave data-trigger off so the widget shows its own floating "Book now" button. You may set data-accent to my brand color and data-header to my property name: <script src="https://YOUR-SUBDOMAIN.directbookinghost.com/embed-drawer.js" data-website="YOUR_WEBSITE_ID" data-trigger="#book-now" data-position="right" data-accent="#c8a04f" data-header="Book your stay" defer ></script>
In Wix Studio, open the AI assistant (or right-click an element and choose Add Custom Behavior with AI), paste the prompt, and replace YOUR-SUBDOMAIN and YOUR_WEBSITE_ID with the values shown on your Embed page.
Make it match your brand
The drawer works out of the box, but you can tune the chrome to your Wix site with a few attributes — or take full control with your own CSS.
Quick — set attributes
data-accent sets the launcher, header, and spinner color. data-header sets the panel title (or hides it if empty). data-position and data-width control the side and size.
Advanced — your own CSS
Every element carries a stable [data-db-drawer] selector (launcher, overlay, panel, header, title, close, body). Override CSS variables like --db-accent, --db-panel-bg, and --db-header-bg from your site's stylesheet.
/* Example: retheme the drawer from your own site CSS */
[data-db-drawer="panel"] {
--db-accent: #c8a04f; /* buttons, header, spinner */
--db-panel-bg: #101418; /* panel surface */
--db-header-text: #ffffff; /* header title + close icon */
}Booking widget questions
How do I add a booking widget to my Wix website?
What if my Wix site has no Book now button?
Can guests pay inside the booking widget on Wix?
Do I need the Wix Bookings app for this?
Does the booking widget work with the Wix AI assistant?
Will the booking widget match my Wix site's colors?
Is the booking widget mobile friendly on Wix?
Learn more about direct bookings
Turn one-time guests into repeat direct bookings
Most hosts never see their guests again. Every OTA stay should become your next direct booking — your website accepts commission-free reservations, your WiFi keeps your brand in front of guests long after checkout.
Guest books on Airbnb
You pay the OTA commission
Stays at your property
Their only visit — for now
Connects to your WiFi
Branded splash page
Email captured
Added to your guest CRM
Automated follow-up
Offers & seasonal discounts
Books directly next trip
Zero OTA commission
Direct Booking Website
Accept commission-free reservations from day one. Your own branded site with payments, calendar sync, and automated check-in — live in 15 minutes.
- Branded booking website with custom domain
- Stripe payments — zero booking fees
- Calendar sync with Airbnb & VRBO
- Pre-signed rental agreements & waivers
Guest WiFi Marketing
Stop letting guests disappear after checkout. Capture their email when they log on to WiFi, then automatically invite them back to book direct next time.
- Branded WiFi splash page & guest email capture
- Automated rebooking campaigns & seasonal offers
- Repeat-guest discounts to win the direct booking
- Guest CRM across all your properties — any router
One repeat booking often pays for your subscription many times over — there's no OTA commission the second time around. Bundle subscribers save 30% on Guest WiFi Marketing.
Turn your Wix site into a booking machine.
Add the slide-out booking widget in minutes. Guests book and pay without leaving your page. $9/month for 1 property, 5-day free trial.
No credit card required · Cancel anytime