Start free

Guides

How to add an availability calendar to a Wix website

Show guests which nights are free on your Wix site, in the Wix Editor, Wix Studio or the Wix Harmony editor, and pick the right kind of calendar for a small guesthouse, B&B or holiday home.

8 min read · Updated

Short answer

Get the calendar's embed code from your booking tool, add Wix's Embed code element to the page (called Embed HTML in the classic Wix Editor), paste the code and publish. Wix shows embedded code in a box of fixed size, so drag the box tall enough, and check the mobile view too. If you want guests to book and pay instantly instead of asking first, look at Wix's own hotel app before you embed anything.

Pick the kind of calendar first

There are two different jobs a "booking calendar" on a Wix site can do, and they need different tools.

Guests seeWho decidesGood for
An availability calendar you embedWhich nights are free; they send a request or call youYou confirm each bookingGuesthouses, B&Bs, cabins and holiday homes that want to choose their guests
A booking engine such as Wix Hotels by HotelRunnerRooms, prices and a checkoutGuests book and pay at oncePlaces that want instant online booking and payments

This guide is about the first one. A booking engine is a bigger setup (rates, payment, policies), and once guests can book instantly, your calendars on Booking.com and Airbnb have to keep up with it.

Before you start: get the embed 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. The help page on the website calendar has the details.

Add the calendar in the Wix Editor

  1. Open the page in the editor where the calendar should go, for example a page called "Availability".
  2. Click Add Elements (the + on the left) → Embed Code → Embed HTML. A box appears on the page.
  3. Click Enter Code, choose Code, paste the calendar's code and click Update.
  4. Drag the box's handles: as wide as your content, and at least 700 px tall. The calendar scrolls inside the box if it's taller than that.
  5. Switch the editor to the mobile view and check the box there too. Wix keeps a separate layout for phones, so make it full width and tall enough there as well.
  6. Click Publish and open the live page to check it.

Add the calendar in Wix Studio

  1. Open the page in the Studio editor.
  2. Click Add Elements → Embed & Social → Embed code (the HTML iFrame element) and place it on the page.
  3. Open the element's Settings, choose Code, paste the calendar's code and apply.
  4. Size it: full width of its section, at least 700 px tall. Check the tablet and mobile breakpoints too.
  5. Publish and check the live page.

Add the calendar in the Wix Harmony editor

  1. Click + Add at the top left → Elements.
  2. Hover over More Options, scroll down and click Embed, then drag Embed code onto the page.
  3. Click the Settings icon on the element's action bar and paste the code into Enter HTML embed code. Give it an Accessible name such as "Availability calendar".
  4. Size it as above, then publish.

Why a fixed box?

Wix runs embedded code inside a separate frame on its own address, for safety. That frame keeps the size you give it, so the calendar can't grow or shrink the box itself. A tall box with the calendar scrolling inside it is normal on Wix.

Things that behave differently on Wix

  • The booking-request form opens inside the box, not over the whole page, because of that frame. A box at least 700 px tall leaves the form enough room.
  • Language on multilingual sites. Inside Wix's frame, a calendar may not see which language the page is in, and then it follows the guest's browser instead. If your site has language versions, add one embed per language page and choose the language in the calendar's code options. In Book Me A Pillow that's the Language choice under Put it on your website.
  • Not Wix's site-wide "Custom Code". Wix also has a place to add code to every page (in the site's settings, under custom code). That's for tracking scripts and the like. It can't put a calendar at a spot on a page, so use the Embed element.
  • Changes show up by themselves. The embed loads the calendar live, so new bookings and your setting changes appear without touching Wix again. In Book Me A Pillow that takes a couple of minutes.

Or: a "Check availability" button

If you'd rather keep the page clean, link to the calendar instead of embedding it. Add a Wix Button, set its link to a Web address, and paste the calendar's link. In Book Me A Pillow that's the Link tab under Put it on your website. Guests then see the calendar on a page of its own, full width, which works well on phones.

You can also do both: a button at the top of every page and the full calendar on an "Availability" page.

Checklist

  • The box is at least 700 px tall on desktop and on mobile, and as wide as your content.
  • On the live site, open the calendar, 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.
  • On a multilingual site, check each language page.
  • 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

Why do I see scrollbars around the calendar?

Because the Wix box is smaller than the calendar. Drag the box taller, or show fewer months ahead in your calendar's settings.

The calendar shows in the editor but not on my site. Why?

The editor doesn't always run embedded code the way the live site does. Click Publish, then open the live address in a private window. If the box is still empty, check that you pasted the whole code, including the <script> line.

Can guests book and pay through an availability calendar?

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, a booking engine such as Wix Hotels by HotelRunner is the better fit.

Will the calendar slow down my Wix site?

It loads in its own frame, separately from the rest of the page, so your own text and images aren't held up by it. Putting it on its own "Availability" page keeps your home page as light as it was.

Does it work in the Wix mobile app view?

Yes. Check the box's size in the mobile view of the editor, since Wix keeps the phone layout separately. A "Check availability" button that opens the calendar on its own page is the simplest choice on phones.

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