Add your Naayya schedule to your own website. Visitors can browse upcoming public classes, workshops, and courses, open details, and start a booking from the widget.
New setups use the v2 widget. You copy the code from Admin → Settings → Storefront → Website embed, then paste it into your website.
To show your passes, class packs and memberships instead, see Show Your Pricing on Your Website. To show your appointments and court hire, see Show Your Services on Your Website. To show your gift cards, see Show Your Gift Cards on Your Website.
Who this is for#
Business owners and managers who run their own website, and staff whose role has Manage website. The schedule works with website builders that accept code, a link or a React component. Each builder has its own guide:
Get your embed key#
Open Admin → Settings → Storefront → Website embed. Naayya has already created your embed key and put it in the code. Under Which widget?, choose the widget you want. Select Schedule to add a schedule, or choose Pricing, Services or Gift cards. Under Website code, choose your builder in Where is your website built?, then copy what it needs:
- Copy code: the code for builders that accept HTML with a script.
- Copy iframe code: for blocks that remove scripts but keep an iframe (Squarespace and Other website).
- Copy link: for builders that embed a link (Framer).
- Copy React code: a React component (Lovable).
Open See code to read it first, or use Embed preview to see it live. Then paste the code in your website builder.
Add the schedule (2 lines)#
Paste the generated snippet into the page’s HTML or code block. Keep your generated embed key.
<script type="module" async src="https://www.naayya.com/plugin/v2/loader.js"></script>
<naayya-schedule business-id="YOUR_EMBED_KEY"></naayya-schedule>Use your builder’s block if a rich-text block strips the code. Later changes to appearance and card settings appear on the next page load.
What the schedule shows#
The schedule lists your public classes, workshops, and courses. Each card is labelled Class, Workshop, or Course, and the booking button depends on what it is:
- Classes show Book, or your own Button text.
- Workshops show Book workshop, or your own Button text. A Tickets from price appears only when the workshop has its own linked ticket product, not from a class pack or membership.
- Courses show View course, which opens the whole-course page. When a single session can also be booked on its own and has its own price, a second button, Single session with that price, opens that session's checkout. A course does not appear in the schedule until it has an active, published whole-course program.
Services are not part of this schedule. Older snippets that
include a kinds attribute keep working and show the same classes, workshops,
and courses.
Options#
The copied code holds only business-id. If you edit the v2 element yourself,
these attributes control its display. An attribute you add wins over the
matching setting in the Website embed section:
| Attribute | Values | What it does |
|---|---|---|
business-id | embed key | Required. Identifies the schedule to show. Keep the value from the generated snippet. |
mode | inline (default), popup, float | Shows the schedule in place, behind a button, or behind a floating button. |
theme | light (default), dark, auto | Sets the widget's colour theme. auto follows the visitor's system setting. Without it, the widget uses the Theme set in the Website embed section. |
trigger-label | text | Button text for popup and float modes. |
teachers | comma-separated ids | Pre-filters the schedule to selected instructors. |
locations | comma-separated ids | Pre-filters the schedule to selected locations. |
categories | comma-separated names | Pre-filters the schedule to selected class categories. |
hide-filters | present or absent | Hides the filter controls, whatever Filters says in the Website embed section. |
kinds | older snippets only | No longer limits what shows. The schedule includes classes, workshops, and courses. |
Display modes#
The mode values are listed above. For a popup button with your own label:
<naayya-schedule business-id="YOUR_EMBED_KEY" mode="popup" trigger-label="Book a class"></naayya-schedule>
Match your brand#
The embed starts from your saved business brand. Under Appearance in the Website embed section, change any of these for the embed only:
- Theme: Light, Dark, or Match device, which follows the visitor's light or dark setting.
- Colours: Buttons, Button hover, Background, Cards, Text, Light text, and Lines.
- Font: use a font your website already loads, for example
Poppins. Type one name or a list separated by commas, such as"Open Sans", Arial. A name in quotes needs both quotes. The font saves once the list is complete. - Text size, Card corners, Button corners, Spacing, and Card shadow.
Under Schedule cards, choose whether each card shows the Instructor, Price, Places left, and Short description, set the Button text, and turn Filters on or off. An Instructor, Price, or Places left you turn off is also left out of the details that open from a card.
The lead form follows Appearance too.
Changes save as you go, and your website shows them the next time a page loads. Anything you have not changed keeps following your brand, except that the Dark theme uses dark colours in place of your brand colours. Use brand puts the appearance back to your brand. The Embed preview is the real embed, and you can check it in Desktop and Mobile layouts.
Code copied before these settings existed may have settings written into it:
colours, font, and corner shape if Customize this embed was selected, and
hide-filters unless Let visitors filter the schedule was selected. Those
keep showing whatever the Website embed section says. Copy the code again and replace the
old snippet once, so your website follows the Website embed section.
Website developers can still override any style with CSS on the
naayya-schedule element, for example
naayya-schedule { --naayya-color-primary: #2f3e35; }. CSS on your website wins
over the Website embed section.
React and Next.js#
If your site is a React or Next.js application, Naayya provides a React wrapper for the same schedule widget:
import { createNaayyaSchedule } from 'https://www.naayya.com/plugin/v2/react.js'
import React from 'react'
const NaayyaSchedule = createNaayyaSchedule(React)
export function Schedule() {
return <NaayyaSchedule businessId="YOUR_EMBED_KEY" mode="inline" theme="auto" />
}Keep the businessId value from the snippet in the Website embed section. For an
app built with Lovable, choose Lovable and select Copy React code: it
gives a ready component that loads this wrapper. See
Add your schedule to Lovable.
Where to paste it#
- WordPress: edit the page and add a Custom HTML block.
- Squarespace: add a Code block, or an Embed block with the iframe code.
- Wix: add an Embed code element and choose Embed HTML.
- Webflow: add a Code Embed element.
- Shopify: add a Custom Liquid section in the theme editor.
- Framer: add an Embed set to URL and paste the link.
- Other builders: use an HTML or embed section that accepts custom code. If it removes scripts, use the iframe code.
Your websites#
The link and the iframe code show your schedule, and your
pricing widget,
services widget and
gift cards widget, only on the websites you
list under Your websites in the Website embed section. Add each address your website opens
on, one per line, then select Save websites. When you add yourwebsite.com,
Naayya also adds www.yourwebsite.com, and the other way round.
A list does two things:
- Only the websites on it can show the schedule in a frame (the link or the iframe code).
- Only the websites on it can load the schedule from the code.
Leave the list empty and the code works on any website, but no website can show the schedule in a frame, so Copy link and Copy iframe code are not available until you list a website. A website builder's editor or preview runs on the builder's own address, so the schedule may not show there. Check it on your published website.
What the widget does not do#
See what visitors can book and where checkout happens. The schedule excludes physical products and cart controls.
Classic embed (v1, retired)#
The older iframe and data-naayya-calendar embed no longer works. If your site
still has it, replace the old code with the generated v2 code and review the
result with Embed preview in the Website embed section.