---
title: 🌐 9.1 Embedding Content
slug: 91-embedding-content
createdAt: 2025-11-24T19:53:37.583Z
---

## Overview

Embedding Sweatpals allows you to streamline your signups while keeping your members on your website. You can embed your experiences calendar or plans onto your website with ease and more customization than ever.

## Embedding Content

### How to embed

1. Open [dashboard.sweatpals.com](https://dashboard.sweatpals.com)
2. Select the **Embeds&#x20;**&#x74;ab
3. Customize the embeds as you see fit
4. Copy & paste the code into your website management platform

:::hint{type="info"}
**Please note:&#x20;**&#x53;till having trouble embedding the code onto your website? Try:

1. Reviewing our [platform-specific instructions section below.](https://help.sweatpals.com/91-embedding-content#platform-specific-instructions)
2. Pasting the code into Claude/ChatGPT/another AI provider to reformat the code as-needed.
:::

### Customization options

When using the embed editor, you will see the following customization options:

**Widget Content:&#x20;**&#x53;chedule, Experience, Appointments, Plans or Gift cards. You only see the options your community uses (for example, Gift cards shows up once gift cards are turned on for your community)

- **Design**
  - Classic or Modern style
  - Colors for background, brand color, card background, text and subtext, plus an optional glass effect
  - Height (Auto or Fixed), spacing (Tight, Medium or Loose), max width, corner radius and font
- **Layout**
  - **Views available to members**: Calendar, Cards, Week or Recurring
  - **Default view that members land on**, and whether the time shows first or in the middle
  - **Filters available to members**: experience type, fitness type, location, instructor and price range. You can also pre-filter by experience type.
- **Content Visibility**
  - **Schedule**: widget title, start time, duration, cover image, address, price, price with plan, tags, share button, RSVPs, capacity, host, co-host and instructor
  - **Plans**: widget title, intro offer tag, price per experience, savings amount, description and what's included
- **Booking Behavior**: set the CTA button text and choose what happens when members click "Book now"
  - **In-widget checkout** -> prompts a <u>direct to checkout</u> pop-up (recommended for gyms/studios)
  - **Open experience details&#x20;**-> prompts a <u>direct to listing</u> pop-up (recommended for event organizers)
  - **Redirect to details page in new tab&#x20;**-> opens a <u>direct to listing</u> new tab&#x20;
  - **Redirect to checkout in new tab&#x20;**-> opens a <u>direct to checkout</u> new tab&#x20;
- **Custom CSS:** add your own CSS to fine-tune the widget's look
- **Preview:** use the desktop, mobile, light and dark toggles at the top to check the widget before copying the code. Flip between light and dark before you copy it: a text color that reads well on a dark page can almost disappear on a light one
- **Chapters** (networks only): pick which chapters feed the widget. Leave one chapter ticked to build a page for one location, or tick them all and add the Location filter for an all locations page

### Schedule views

Under **Layout**, tick the views members can switch between and pick the default one. If you leave only one view ticked, the view switcher disappears from the widget.

- **Calendar:** a week grid by time of day. Works best when your week is full
- **Cards:** a grid of event cards with big images. Works best when you have a handful of events and great photos
- **Week:** the days of the week across the top, with the selected day's events listed below
- **Recurring:** made for experiences that run on a few days a week with several times on each day. Days with nothing on are dimmed, and each experience shows once per day with all its times under "Pick a time to book". Full times show Join waitlist instead of Book now. Under Layout, Recurring slots lets you show every time (Expanded) or fit more events on screen (Compact)

::Image[]{src="https://api.archbee.com/api/optimize/-solDijdt4SsjqcUeW3dx/ocpbJ2Quv4WBgmUg7qKCX_embed-recurring-view.png" size="80" isUploading="false" position="center" width="1141" height="581" darkWidth="1141" darkHeight="581" alt="Schedule widget in the Recurring view" showCaption="false"}

### Gift card widget

Sell gift cards straight from your own website. Pick **Gift cards** under Widget Content. Members choose an amount, add the receiver's name and email, and the receiver gets the card by email. It's the same gift card as the one sold on your community page, so it works on any of your experiences.

- The option only shows up once gift cards are set up for your community. If you don't see it, contact our support team
- **Card design:** Photo or Solid color. Solid color works better on a page that already has lots of images
- The colors, height, spacing, max width, corner radius and font work the same as in the schedule widget, and you can turn the animations off
- To change the gift card image, contact our support team
- For networks, a chapter's widget sells that chapter's gift card

![Gift card widget preview](https://api.archbee.com/api/optimize/-solDijdt4SsjqcUeW3dx/kQbmG1JIXgB0rH3DSk-0C_embed-gift-card-widget.png)

### Appointments widget

Let members book a 1:1 appointment from your website. Pick **Appointments** under Widget Content and choose the appointment to show. The widget shows its schedule, location and price, your service providers with their next available times, the description and any packages.

- **Design:** background, brand color, text and subtext colors, animations, height, max width and corner radius
- **Copy:** change the button text
- **Content visibility:** tags, share button, schedule, location, Pals trained here, service providers, description, packages and host information
- **Booking behavior:** in-widget checkout or redirect to checkout in a new tab
- For how members pick a time and provider, see 3.6a How Appointment Availability Works

### Apple Pay on your website

If you use in-widget checkout, you can offer Apple Pay on your own site. In the embed editor, click **Apple Pay domains** (top right), add the website where you embed your checkout (for example yourdomain.com) and click **Add**. A domain we haven't seen before is reviewed by our team first, and the Status column shows where it stands. Domains added by other communities on the same payment account show up in the list too, but only they can change them.

:::BlockQuote
🔔 Private events and plans will not show up once the public Embed link is created.
:::

:::Iframe{iframeHeight="0" code="<p><div style=&#x22;position: relative; box-sizing: content-box; max-height: 80vh; max-height: 80svh; width: 100%; aspect-ratio: 2.09; padding: 40px 0 40px 0;&#x22;>&#xA;  <iframe src=&#x22;https://demos.sweatpals.com/embed/cmkeayq1u1mwmqm44zduawuk6?embed_v=2&utm_source=embed&#x22; loading=&#x22;lazy&#x22; title=&#x22;Embeds UI&#x22; allow=&#x22;clipboard-write&#x22; frameborder=&#x22;0&#x22; webkitallowfullscreen=&#x22;true&#x22; mozallowfullscreen=&#x22;true&#x22; allowfullscreen style=&#x22;position: absolute; top: 0; left: 0; width: 100%; height: 100%;&#x22;></iframe>&#xA;</div></p>"}

:::

## Platform-Specific Instructions

### Squarespace

- While working within a **section** on Squarespace, click on **Add Block**.
- Scroll down the list of blocks, and select **Embed**.
- Click on the **pencil** icon, and select **Code Snippet**.
- Paste the code provided by the Sweatpals embed page, and hit save.&#x20;
- Preview your page!

### Wix

- While editing your page on Wix, click on the **+** icon, and navigate to the **Embed Code** element.
- Select **Embed HTML,** and paste the code provided by the Sweatpals embed page.
  - In some instances, Wix may not display the embed correctly due to the code interfacing incorrectly with HTML. For these cases, we recommend taking the Sweatpals code through ChatGPT/Claude/Gemini, and ask for a more HTML-friendly version of the code.&#x20;
- Scale the embed element as needed, save, then enter preview mode!&#x20;

### Shopify

- Access the Shopify [Admin Editor](https://admin.shopify.com/)
- While in Editor mode, click on any Product or item you wish to add the Sweatpals Embed Widget to.
- While navigating the specific Description, click on the **Show Editor** button.
- Copy and paste your widget here, you can combine normal text with your widget by toggling between editor and text mode.

![](https://api.archbee.com/api/optimize/-solDijdt4SsjqcUeW3dx/X_Uv51y9EXYKkT5T_Jhsc_image.png)

### Wordpress (Elementor)

- Find your page in Wordpress, and select **Edit with Elementor**.&#x20;
- Look for the **Embed HTML** widget, and add it to your page.&#x20;
- Paste the code provided by the Sweatpals embed page in the **HTML Code** field.
  - Similarly to Wix, Wordpress may not display the embed correctly due to the code interfacing incorrectly with HTML. For these cases, we recommend taking the Sweatpals code through ChatGPT/Claude/Gemini, and ask for a more HTML-friendly version of the code.&#x20;
- Click on **Preview Changes&#x20;**&#x61;nd review your embed widget!&#x20;

## Legacy Embed Tools

Although the new **Embeds** tab is the intended flow, as they have enhanced functionality, you can still use the legacy embed options when necessary.&#x20;

These options are accessible when exploring the **Experiences** and **Plans** tabs:

### Experience: Embedding Specific Experience(s)

1. Select **Experience&#x20;**&#x74;ab
2. Select a particular experience
3. Toggle into **Embed Code**
4. Customize your embed appearance, set display style, font style, & color scheme
5. Click on Preview embed & once ready, copy and paste the code on your homepage

:::Iframe{code="<div style=&#x22;position: relative; box-sizing: content-box; max-height: 80vh; max-height: 80svh; width: 100%; aspect-ratio: 2.013986013986014; padding: 40px 0 40px 0;&#x22;><iframe src=&#x22;https://demos.sweatpals.com/embed/cmidoj7hea5mhb7b4ucxtu03d?embed_v=2&utm_source=embed&#x22; loading=&#x22;lazy&#x22; title=&#x22;Embed Events 2.0&#x22; allow=&#x22;clipboard-write&#x22; frameborder=&#x22;0&#x22; webkitallowfullscreen=&#x22;true&#x22; mozallowfullscreen=&#x22;true&#x22; allowfullscreen style=&#x22;position: absolute; top: 0; left: 0; width: 100%; height: 100%;&#x22;></iframe></div>"}

:::

### Plans: Embedding Specific Plan(s)

1. Select **Plans&#x20;**&#x74;ab
2. Click the **Embed icon**
3. Customize your embed appearance, set display style, font style, & color scheme
4. Click on Preview embed & once ready, copy and paste the code on your homepage

:::Iframe{code="<div style=&#x22;position: relative; box-sizing: content-box; max-height: 80vh; max-height: 80svh; width: 100%; aspect-ratio: 2.013986013986014; padding: 40px 0 40px 0;&#x22;><iframe src=&#x22;https://demos.sweatpals.com/embed/cmidocx3qa5iyb7b4qgzj93i0?embed_v=2&utm_source=embed&#x22; loading=&#x22;lazy&#x22; title=&#x22;Embed Memberships 2.0&#x22; allow=&#x22;clipboard-write&#x22; frameborder=&#x22;0&#x22; webkitallowfullscreen=&#x22;true&#x22; mozallowfullscreen=&#x22;true&#x22; allowfullscreen style=&#x22;position: absolute; top: 0; left: 0; width: 100%; height: 100%;&#x22;></iframe></div>"}

:::

### Example Embed Snippet

This only shows the format. The real code is longer because it includes every setting you picked, so always copy it with Get code in the Embeds tab instead of typing it.

:::BlockQuote
\<!-- Sweatpals widget begin -->
\<script src="https\://sweatpals.com/static/embed/community/events/script.js?communityUsername=yourcommunity\&defaultView=calendar&...">\</script>
\<!-- Sweatpals widget end -->
:::

## CSS Properties Breakdown

Here we share some popular CSS properties and examples included in the template, that will help you size/resize embeds, add them into your CSS code whenever your embed imports don't fit in your website's frame:

### Height/Width

Use it to directly edit the embed's dimensions (height and width), you can combine this with scale for a more accurate sizing. You can
set height and width with either fixed values (like pixels), or with % (of the total value).
`height: 120px;` `width: 100px;`
`height: 100%;` `width: 80%;`

### Overflow

Use it when your embeds don't seem to fit within your site's dimensions (embeds being cut off or not matching a frame, too large, etc).
`overflow: hidden;` (hides overflow, preventing it crowding other parts of the page)
`overflow: scroll;` (hides overflow, but adds a scroll to allow displaying all the content by sliding)

💡 Overflow needs its element to have a set size in order to work (height and width).

### Transform

Instead of overflow, you can use Transform to upscale or downscale embeds when they don't properly fit within your site's dimensions
`transform: scale;` (upscale or downscale the original content. Eg: scale(0.95), scale(1.20))

## FAQ

**Q: Does the content from embeds update automatically?**&#x20;
A: Yes, if you update or change event, class or plan information, the embed widget will update automatically to reflect the new changes.

**Q: Do participants leave my page when using the embed links?**&#x20;
A: No, participants will be able to view your items and complete the purchase without leaving your homepage. The Dashboard will sync their information in Sweatpals just as if they acquired their tickets in our site.

**Q: Does the Analytics Dashboard account for interactions from the embed option?&#x20;**&#xA;A: Yes, the Dashboard accounts for interactions originating from embedded widgets, as well as interactions from Sweatpals' community and event pages. This includes page views and ticket sales.&#x20;

