Foyer

How to add Square Appointments booking to a Wix site

There is no built-in Square Appointments app for Wix, so you add booking with code. Here is how to do it with Square’s own button and with the Foyer widget, and which Wix plan each needs.

Updated October 9, 2026 · 2 min read

Short answer

Copy Square’s button or embed code from Appointments > Online Booking > Channels, then paste it into a Wix Embed HTML element. For a floating Book button on every page, paste the Foyer widget into Settings > Custom Code. Wix only allows Custom Code on a published site with a connected domain, which needs a Wix Premium plan.

  • Embed HTML runs inside an iframe and won’t resize on its own
  • Custom Code runs on the page itself, so a popup works
  • Changing your Wix domain deletes your code snippets

Option 1: Square’s button or embed

  1. Open your booking channels. Square Dashboard > Appointments > Online Booking > Channels.
  2. Choose how to add it. Under “Add your booking flow to an existing site,” click Get Started, then Create button, Get embed code or Get URL.
  3. Copy the code or link. Pick the location, customize the button if you made one, and copy.

Square’s embed opens the booking flow “in another tab or window,” so the booking itself happens on Square’s page, not yours. That is fine for a simple site. If you want booking to stay on your page in your design, use the Foyer widget below.

Paste it into Wix

  1. In the Wix Editor, click Add Elements. Then Embed Code > Popular Embeds > Embed HTML. In Wix Studio: Add Elements > Embed & Social > the embed code element.
  2. Click Enter Code. Paste Square’s code and click Apply.
  3. Size the box. Wix shows HTML elements in an iframe that “won’t be responsive.” Make the element wide enough for the button, then publish.

Option 2: the Foyer widget on Wix

The Foyer widget books into Square Appointments from your own page, as a popup with a floating Book button or inline inside a page, with deposits, member prices, packages and promo codes. Your install code comes from the Foyer dashboard with your ID filled in:

<script src="https://app.foyerkit.com/widget.js" data-merchant="your-id" async></script>

Floating Book button on every page (recommended)

  1. Open your site dashboard. Go to Settings, then Custom Code under Development & integrations.
  2. Click + Add Custom Code. Paste the Foyer code and name it “Foyer booking.”
  3. Choose All pages and Body - end. Wix suggests the body for functional scripts. Load it on each page.
  4. Click Apply, then publish. Custom code only runs on the published site, not in the editor.

Inline on one page

Add an Embed HTML element where you want booking and paste your Foyer code set to inline mode. Because Wix wraps embeds in an iframe, give the element a generous height. Links to #book anywhere on your site open the popup once the site-wide code is in.

Which Wix plan you need

Free Wix siteWix Premium + connected domain
Embed HTML elementCommonly worksYes
Settings > Custom CodeNoYes
Floating Book button on every pageNoYes

Wix says: “To add custom code, the site must be published and have a connected domain,” and connecting a domain needs a Premium plan.

Sources, checked October 9, 2026: Wix: embed custom code, Wix: Embed HTML, Wix: frontend security, Square: client-facing booking tools.

If it doesn’t show up

  • Look at the live site, not the editor. Custom Code doesn’t run in the Wix editor.
  • Changed your domain? Wix deletes code snippets when you assign a different domain. Add it again.
  • Code saved over HTTP? Wix only shows HTTPS code and URLs.
  • Wix Bookings vs Square. Wix Bookings is Wix’s own scheduler. Square works in Wix as a payment provider, not as a calendar sync, so pick one place to manage appointments.

Questions Square sellers ask

Does Wix integrate with Square Appointments?

Not with a built-in app. Square connects to Wix as a payment provider, but Square Appointments booking is added with code: Square’s button or embed, or a widget like Foyer.

Can I add custom code to a free Wix site?

Not site-wide. Wix Custom Code needs a published site with a connected domain, and a connected domain needs a Premium plan. The Embed HTML element is commonly used on free sites, but it runs in an iframe.

Why doesn’t my Square booking button work in the Wix editor?

Wix runs custom code only on the published site. Publish and check the live page.

Can I use Wix Bookings and Square Appointments together?

Not as one calendar. Wix Bookings keeps its own schedule; Square can process its payments. Choose one system for appointments to avoid double booking.

Will bookings from my website show up in Square?

Yes. Square’s own button and Foyer’s widget both book straight into Square Appointments, with the client in your Square customer directory and payments in your Square account.

Give your Square business a front door.

Branded booking, deposits, memberships and a website, connected to the Square account you already run.