Back to articlesIntegration

How to embed the booking widget on your website

Three codes to paste into your site: an inline frame, a floating button or a link that opens a window. They work for bookings, forms, events, products and your showcase.

3 min read
Try it here
Elena's practicePsychologist in Turin
First session · 50 min
13141516
10:0011:3016:00
In short

Three codes: inline frame, floating button or a link that opens a window

Works for bookings, forms, events, products, gift cards, gift lists and showcase

The code sits next to the page address, in the embed button

Chapter 1/5

What you embed and where to get the code

Every booking on Bink has its own page. The widget is that page loaded inside your website, without the Bink header and footer: same calendar, same free slots. It works the same way for forms, events, products, gift cards, gift lists and your showcase.

In the editor, open the block: next to the page address there is the embed button ("Integra sul sito"). For a booking you also find it in Bookings, in the settings of that booking type; for a product, in Shop → Products, in the "Share and sell" menu.

A window opens asking how you want customers to book from your site, with three choices: "Dentro la pagina" (inside the page), "Pulsante fisso nell'angolo" (fixed button in the corner) and "Dal tuo pulsante" (from your own button). Each choice shows a drawing of what your visitors will see. Once you pick one, the code appears with three steps to paste it, plus a button that copies everything for whoever manages your site.

Chapter 2/5

Inside the page ("Dentro la pagina")

It is an iframe as wide as the container you put it in. Use it when the calendar should always be visible, for example on a "Book" page of your site.

The suggested height for a booking is 700 pixels. Change the height value in the code if your layout needs more or less.

Bring Bink to your website

The Free plan is free forever and needs no card.

Start for free
Chapter 3/5

Fixed button in the corner ("Pulsante fisso nell'angolo")

It is a script, embed.js, that adds a button in the bottom-right corner of every page where you paste it. On click a panel opens with the Bink page, which closes with the ×, a click outside or Esc.

In the window you choose the button text and colour. In the code you can also change the icon (data-icon: calendar, form, ticket, bag, gift or none), the panel width (data-width, 320 to 1200 pixels) and the side, with data-position="bottom-left" to move it to the left.

If you do not set a text, the button says "Book now" in the language of the page it sits on.

Chapter 4/5

From your own button ("Dal tuo pulsante")

It is an HTML link that opens the Bink page in a separate window. Put it wherever you need it: in the menu, next to a service description, at the end of an article. You choose text and colour in the same window.

Chapter 5/5

Payments, and which one to choose

If the booking is paid, when the client goes to pay the Stripe page opens in the full window, outside the frame. The thank-you page, on the other hand, stays inside your site.

Inside the page for a page dedicated to bookings, the fixed button in the corner to have it on every page, your own button for one specific spot. All three work on any website that accepts an HTML code block.

Frequently asked questions

Does the widget work on WordPress, Wix or Squarespace?

Yes. The three codes are an iframe, a script and an HTML link: they work on any site that lets you paste a code block, including WordPress, Wix, Squarespace and hand-written HTML pages.

Does the calendar show live availability?

Yes. The widget is the booking page on Bink, so it reads the same free slots: a time booked elsewhere disappears from your site too.

Can I embed a form as well?

Yes, and also an event, a product, a gift card, a gift list or your showcase. You get the code in the editor, next to the page address, with the embed button.

Does the widget show the Bink logo and menu?

No. The codes add the embed=true parameter to the address, which loads the page without your Bink header and without the footer.

How does a client pay for a booking from the widget?

When they press to pay, the Stripe page opens in the full window, outside the frame. The payment reaches your Stripe account like any other booking.

What language is the widget button in?

If you do not set a text, the floating button says "Book now" in the language of the page it sits on, among Bink's nine languages. If you write the text yourself, it stays as you wrote it.

Ready to get started?

Create your page in minutes. No credit card required.