How to add an availability calendar to a Squarespace website
Show guests which nights are free on your Squarespace site with a Code block. Covers which plans run scripts, what to do on the Basic plan, and how to check it on the live site.
6 min read · Updated
Short answer
Copy the calendar's script code from your booking tool, add a Code block to the page, leave its type on HTML, paste the code and save. Squarespace runs scripts and iframes in Code blocks only on the Core, Plus and Advanced plans (and the older Business and Commerce plans). On the Basic or older Personal plan, add a Button that links to the calendar instead.
Check your plan first
Squarespace splits code into two levels:
| Basic (and the older Personal) | Core, Plus, Advanced (and the older Business, Commerce Basic, Commerce Advanced) | |
|---|---|---|
| HTML and CSS in a Code block | Yes | Yes |
Scripts (<script>) and iframes in a Code block | No | Yes |
| What to use for the calendar | A button that links to it | The script code in a Code block |
You can see your plan in the site's settings under billing. Squarespace renames its plans from time to time, so if yours has a name not listed here, look for "custom code" or "code block" in its feature list.
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 :
Website calendar in the menu → open a calendar → Put it on your website → Script → copy. For the button on the Basic plan, copy the Link instead. The help page on the website calendar has the details.
Add the calendar with a Code block
- Open the page where the calendar should go, for example a new page called "Availability", and click Edit.
- Click Add Block (or the + where you want it, in older layouts) and choose Code.
- Paste the whole code into the block. Leave the type menu on HTML: with any other type, Squarespace shows the code as text instead of running it. Leave Display Source off for the same reason.
- Make the block as wide as the section. In the newer editor (Fluid Engine), drag the block's edges across the whole grid.
- Save, then open the live page to check it.
The script sets the calendar's own height and fits the block's width, so there's nothing to size beyond the width. In the newer editor, the phone layout is arranged separately: switch to the mobile view and make the block full width there too.
Check it on the live site, not in the editor
Squarespace says that, as a security measure, code sometimes doesn't appear while you're logged in, even though visitors can see it. If the block looks empty in the editor, open the page in a private window or on your phone before changing anything.
On the Basic plan: a "Check availability" button
Scripts and iframes won't run on Basic, so link to the calendar instead:
- In the page editor, add a Button block.
- Write "Check availability" (or "Free dates") as its text.
- Paste the calendar's link as the button's link. In
that's the
Linktab underPut it on your website. - Save and try the button on the live site.
Guests then see the calendar on a page of its own, full width, which also works well on phones. Many sites use this button even on Core and above: at the top of every page, with the full calendar on an "Availability" page.
When the calendar doesn't show
- Only a "BookMeAPillow.com" link shows. The script didn't run. Check your plan (it needs Core or above) and that the block's type is HTML.
- The code shows as text on the page. The block's type is set to something other than HTML, or Display Source is on.
- It's empty in the editor but fine in a private window. That's Squarespace hiding code while you're logged in. Nothing to fix.
- It works after a refresh but not when you arrive from another page. Squarespace's older 7.0 templates can load pages without a full reload ("Ajax loading"), and Squarespace says that can conflict with embedded code. Turn Ajax loading off for the site.
- The page is inside an Index. Squarespace notes that code may not render on pages inside an Index page. Put the calendar on an ordinary page.
Checklist
- Your plan runs scripts (Core or above), or you used the button.
- The Code block's type is HTML and Display Source is off.
- 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
Can I use an Embed block instead of a Code block?
Squarespace's Embed block is made for links from services like YouTube and for embed codes in that standard, and Squarespace itself sends other code to the Code block. Use the Code block on Core and above, and the button on Basic.
Can I add the code once for the whole site with Code Injection?
Not for a calendar. Code Injection adds code to the top or bottom of every page, which suits tracking scripts. A calendar has to sit at a spot on a page, which is what the Code block is for.
Does it follow my site's language?
With 's script, the calendar uses the language the page says it's in, and otherwise the guest's browser language. If it shows the wrong one, choose the language in the code's
Language option and paste the code again.
Can guests book and pay through it?
Not with : 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
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.