Guide
Add desk booking to your website
Your customers can book a desk without leaving your website. There are three ways to set that up, from a snippet you paste once to a plain link. None of them needs a developer.
Before you start
You need a DevonDesk workspace with at least one space and one price. Setting one up is free and needs no card. Your own copies of everything below, with your workspace’s name already filled in, are under Add to your website in your dashboard.
Option 1: the snippet (recommended)
Paste this where the booking widget should appear on your page:
<div data-devondesk="your-workspace"></div>
<script src="https://devondesk.com/embed.js" async></script>Replace your-workspace with your workspace’s short name, as shown in your dashboard. The snippet puts your floor plan, prices and booking form on the page, and then:
- keeps the widget exactly as tall as what’s in it, so there is no second scrollbar;
- takes the customer to Stripe’s secure payment page when they pay by card;
- brings them back to the same page on your website afterwards, with their confirmation showing, once you have listed your site (see Allowed websites below).
The widget uses the colours, font and layout you chose under Appearance, so it reads as part of your site.
Option 2: a plain iframe
Some website builders remove scripts from pasted code. For those, use an iframe instead:
<iframe src="https://devondesk.com/embed/your-workspace"
style="width:100%;min-height:900px;border:0"
title="Book a space" loading="lazy"></iframe>It shows the same widget, with two differences: it can’t resize itself, so adjust min-height until it fits, and customers finish on your hosted booking page after paying instead of returning to your site.
Option 3: a link to your booking page
Every workspace has a booking page of its own at https://devondesk.com/w/your-workspace. Link to it from a “Book now” button, an email, a social post or a QR code on the door. It needs no code at all, and it is the answer if you have no website.
Where to paste it
| Website builder | What to do |
|---|---|
| WordPress | Add a Custom HTML block and paste the snippet. |
| Squarespace | Add a Code block and paste the snippet. |
| Wix | Add → Embed, then either Embed code with the snippet or Embed a site with the iframe. |
| Webflow | Drag in an Embed element and paste the snippet. |
| Anything else | Paste the snippet wherever the page’s editor accepts HTML. If nothing appears, try the iframe. |
Allowed websites
Under Add to your website you can list the websites allowed to show your widget. We recommend adding your own.
- While the list is empty, any website can show your widget, and customers finish on your hosted booking page after paying.
- Once you list your site, only the sites listed can show it, and customers are returned to the page they booked from.
The address is enough: example.com. If your site works both with and without “www”, add both.
If something isn’t right
- Nothing appears. If you have listed Allowed websites, check yours is among them, with and without “www”, and that
your-workspacehas been replaced with your own. If your website builder strips scripts, use the iframe. - The widget is cut off or has its own scrollbar. That is the plain iframe: raise its
min-height, or switch to the snippet, which sizes itself. - Customers aren’t returned to your site after paying. Add your site to Allowed websites and use the snippet, not the iframe.
Still stuck? Email hello@devondesk.com with the address of the page.
Related
- Everything DevonDesk does
- Webhooks: tell your other systems when someone books
- Pricing