Put booking on your own website with a widget
Your booking site already works on its own, but most people find you through your own website. With a widget you show
your activities, your schedule or the whole booking flow right on your own pages. A widget follows your branding, and
every change you save in Plek goes live by itself: you paste the code only once.
Which widget do you need?
When you create a widget, you pick a type:
- Booking flow: everything from choosing an activity to paying, on one page: visitors pick an activity first, then
when. Best for a dedicated "Book" page.
- Activities: cards or a list of your activities with a button to book. Best for your home page or an "Our classes"
page.
- Single activity: one activity with its upcoming dates and the booking form, for a page about one class, camp or
event. Visitors can also book several dates at once.
- Schedule: upcoming sessions by day or week, with filters. Best for a timetable.
- Book button: a button for one activity, series or session, anywhere in your text.
- Gift cards: sell gift cards with your amounts.
- Hire request: a request form for venue hire, without payment.
- Question form: visitors ask you a question; it lands with your customers, with a task for you. No booking. Good for
a contact page.
Steps
1. Go to Settings > Organisation > Website & widgets.
2. Under Your websites, click Add website and enter the address of your site, e.g. https://www.yourstudio.com (only the
address counts, not the page). Payments and sign-ins that start on that website then come back to it.
3. Under Your widgets, click New widget (or Start with the full booking flow if you have none yet) and pick a type.
4. Give the widget a Name. Only you see it, so you can recognise the widget later.
5. Work through the sections of the builder while you watch the preview:
- Content: show only part of your offer, e.g. Only these activities or Only these locations. Leave empty to show
everything.
- Show and hide: price, images, spots left, location, teacher and more.
- Layout: grid or list, the number of columns, how many items to show.
- Date views: how single sessions are shown: a List of the next days, a Week calendar or a Month calendar, and
which one the widget opens with. Visitors switch between the views you offer.
- Look: Your branding or a Custom colour, font, corners, spacing, light or dark.
- Words: your own button text, or leave empty for Plek's wording in every language.
- Behaviour: what happens when someone clicks, how the payment opens (In the same tab or In a new tab) and which
Language the widget uses.
6. Click Save and close.
7. Open Put it on your website, choose your platform and click Copy code:
- HTML: paste the code in the page's HTML where the widget should appear.
- WordPress: add a "Custom HTML" block (not a Code or Paragraph block) and paste the code in it.
- Wix: add the script line under Settings > Custom code (all pages, body end), then add an Embed (custom element
or HTML) and paste the div line.
- Squarespace: add a "Code" block, paste the code and switch off "Display source". Code blocks need a Business
plan or higher.
8. Publish the page on your website and open it to check.
Not doing this yourself? Use Email these instructions to my web designer.
Tips
- Activity first, then when: once a visitor picks an activity, its courses are grouped per weekday, one row per time
and place (e.g. "Tuesday 16:15–17:00 · Merelbeke") with dates, price and places left. When the activity runs at
several locations, they pick the location first. Many courses in a term stay easy to scan this way.
- Changes you save later go live without pasting the code again. Deleting a widget makes it disappear everywhere its
code is.
- The list of widgets shows Last seen on: the website where the widget was last loaded, so you know where it is in
use.
- Use Duplicate to make a variant, e.g. a schedule for each location.
- Using a WordPress optimisation plugin? Exclude plek.js from "delay JavaScript".
- On Wix, check the live site: the editor preview may not show the widget.
- Can't paste code on your website? Link to your booking site instead (see "Share your booking link").
- The Embedding guide at the top of the page explains attributes, links to a step, events and CSS variables for web
developers.
Related articles
- Use your own domain for your booking site
- Publish and share your booking link
- Connect a payment provider
- Translate your content