Start free

Guides

How to add an availability calendar to a Webflow website

Show guests which nights are free on your Webflow site with a Code Embed element. Covers which plans allow it, what to do on a free Starter site, and how to check it on the published site.

6 min read · Updated

Short answer

Copy the calendar's script code from your booking tool, open the Add panel in the Webflow Designer, add a Code Embed element where the calendar should go, paste the code and publish. Code Embed needs a paid Site plan on the site, or a Core, Growth, Agency or Freelancer Workspace. On a free Starter site, link to the calendar with a button instead.

Check your plan first

Webflow decides custom code by plan:

Free Starter site in a Starter WorkspaceSite with a paid Site plan, or in a Core, Growth, Agency or Freelancer Workspace
Code Embed element (scripts and iframes)NoYes
What to use for the calendarA button that links to itThe script code in a Code Embed

If you don't see Code Embed in the Add panel, that's almost always the plan. Webflow renames and regroups its plans from time to time; its plans page says which ones include custom code.

Before you start: get the code

Every availability-calendar tool gives you a short piece of code to paste. It's usually a <script> line, sometimes an <iframe> or a plain link. Copy it exactly as given.

In Book Me A Pillow: Website calendar in the menu → open a calendar → Put it on your website → Script → copy. For the button on a Starter site, copy the Link instead. The help page on the website calendar has the details.

Add the calendar with a Code Embed element

  1. Open the page in the Designer, for example a new page called "Availability".
  2. Choose where the calendar goes: a section with a container, so it lines up with the rest of the page.
  3. Open the Add panel and drag a Code Embed element into that container (type "embed" in the panel's search to find it).
  4. Paste the whole code into the code window that opens, and save it.
  5. Publish the site, and open the published page to check it.

The calendar takes the full width of the element it sits in and sets its own height, so there's nothing to size. To make it narrower, give its container a maximum width. To show it on several pages, turn the Code Embed into a component and reuse it.

Scripts don't run in the Designer

Webflow runs custom scripts only on the published site, so the Designer may show a placeholder where the calendar will be. That's normal. Publish to your webflow.io staging address or your own domain and check the calendar there.

On a free Starter site: a "Check availability" button

Without Code Embed, link to the calendar instead:

  1. Add a Button element where you want it.
  2. Write "Check availability" (or "Free dates") as its text.
  3. In the button's link settings, choose a URL and paste the calendar's link. In Book Me A Pillow that's the Link tab under Put it on your website.
  4. Publish and try the button.

Guests then see the calendar on a page of its own, full width, which works well on phones. The button is also handy on paid plans, for example in the navigation bar, with the full calendar on an "Availability" page.

When the calendar doesn't show

  • Only a "BookMeAPillow.com" link shows on the published site. The script didn't run: check that the whole code was pasted, including the <script> line, and that you published after pasting.
  • There's no Code Embed in the Add panel. The site is on a plan without custom code. Use the button, or upgrade the site.
  • You put the code in the page's or site's custom code settings. Those add code to the page's head or end, not at a spot in the layout. A calendar needs the Code Embed element, where you want it to appear.

Checklist

  • The Code Embed sits in a container as wide as you want the calendar.
  • You published after pasting, and checked the published page, not the Designer.
  • On the live page, tap an arrival and a departure day, and send yourself a test request.
  • Book a test night in your booking tool and check that it shows as taken a few minutes later.
  • Check the page on a phone.
  • If you're also on Booking.com or Airbnb, connect their calendars too, or the website will show nights as free that are already sold there. See syncing Booking.com and Airbnb with your website's calendar.

Questions

Does it work with Webflow Localization?

With Book Me A Pillow's script, the calendar uses the language the page says it's in, and otherwise the guest's browser language. So the same Code Embed should show the calendar in each locale's language. If one shows the wrong language, choose the language in the code's Language option.

Should I use an iframe instead of the script?

Only if a tool gives you nothing else. An iframe has a fixed height, so the calendar scrolls inside it, and the request form opens inside the frame instead of over the page. The script fits its own height. Both need the Code Embed element, so neither works on a free Starter site.

Can guests book and pay through it?

Not with Book Me A Pillow: guests send a request and you confirm it. That's on purpose, for places that want to choose their guests. If you need instant booking and payment, you need a booking engine instead.

Try it on your own website

Book Me A Pillow shows free nights on your own website, lets guests send a request you approve, and syncs dates with Booking.com and Airbnb. €10 per property a month, the first 3 months free, no card needed.

Start free