Skip to main content

Creating Filtered Views of the Schedule with iFrames

Warning: Advanced embedding topic! Display a filtered Punchpass Schedule on your website with iFrames

Written by Leah

We use iFrames to embed Punchpass on your website, and with our iFrames, you can customize some of the information that is displayed.

You'll find several prepared options for embedding Punchpass on your website and the iFrame code to copy and paste here: Manage > Settings > Embedding Punchpass.

In this guide, you'll find examples of different options for customizing the iFrame code to filter the information from Punchpass that is shared and embedded on your website.


Getting Started

Working with iFrames is a relatively straightforward process. You'll customize the iFrame code and then paste this directly into your website. Some web hosts will require you to have "code" access or access to "iFrames." Please review the documentation with your provider before proceeding.

Please note: As Punchpass does not have access to your website, we may not be able to help with this. So it's highly recommended you find someone comfortable with manipulating the elements of a website.



How to Display the Timetable for One Class

With this option, you'll generate the embed code for an iFrame that displays the schedule for only one class.

Here's what the resulting iFrame looks like:


Generating the Embed Code

Step 1 - Get the URL for the filtered view of the public schedule

Filter the schedule for the class and copy the URL.

Filtering the schedule in Punchpass

In this example, the filtered URL for the Bootcamp classes is:

https://btvfit.punchpass.com/classes?course=3


Step 2 - Add the filter to the source URL

Now add the class filter, the part of the URL that reads: ?course=# where the number is the value copied above, to the iFrame source URL.

Your embed code can be found in Manage Settings > Embedding Punchpass.

For a filtered schedule the URL becomes:

https://btvfit.punchpass.com/classes?course=3&embed=true

Please make sure to retain the &embed=true at the end of the URL, this will hide your logo and the navigation on your website.

Step 3 - Replace the URL in the embed code:

Leave the " " marks - just swap the URL - the highlighted part below:

An example URL in the source code of an iFrame

The updated URL for the filtered schedule view is now:

<iframe name="frame2" src="https://btvfit.punchpass.com/classes?course=3&embed=true" height="700" width="100%" frameborder="0" allowfullscreen></iframe>


That's it! Now you can take that embed code and put it on your website.


How to Display the Timetable for a Specific Location

You may be using your locations filter for class locations or you may have customized the filter to segment your classes in other ways (so it might have a different name now).

Here's how to embed a filtered version of your schedule using the "Locations" filter.

Here's what the resulting iFrame looks like:

An example of an embedded schedule that's filtered for a location in Punchpass

Generating the Embed Code

Step 1 - Get the URL for the filtered view of the public schedule

From the schedule, use the filter to select the location. Copy the URL for the resulting view.

An example of filtering the schedule in Punchpass


In this example, the filtered URL for the Studio A location is:

https://btvfit.punchpass.com/classes?location%5B%5D=Studio+A

Step 2 - Add the filter to the source URL

Now add the location filter, the part of the URL that reads: ?location%5B%5D=Studio+A where the text is the name of the location, to the iFrame source URL.

Your embed code can be found in Manage Settings > Embedding Punchpass.

You'll also want to add &embed=true at the end of the URL, this will hide your logo and the navigation for the embedding.

For a filtered schedule the URL becomes:

https://btvfit.punchpass.com/classes?location%5B%5D=Studio+A&embed=true


Step 3 - Replace the URL in the embed code:

An example of a source URL in iFrame code

The updated URL for the filtered schedule view is now:

<iframe name="frame2" src="https://btvfit.punchpass.com/classes?location[]=Studio+A&embed=true" height="700" width="100%" frameborder="0" allowfullscreen></iframe>


That's it!  Now you can take that embed code and put it on your website.


How to Display the Timetable Without the Filters

When you're embedding your Punchpass schedule, you might wish to hide the filter that appears at the top of the screen.

Here's what the resulting iFrame looks like:

An example of an embedded schedule that hides the filters in Punchpass

Generating the Embed Code

Step 1 - Copy the embed code for your desired view

Your embed code can be found in Manage Settings > Embedding Punchpass.

An example of iFrame source code in Punchpass

Step 2 - Replace the source URL in the embed code:
To hide all of the filters, you'll be adding &hidefilter=true to the iFrame source URL.

The updated URL for the filtered schedule view is now:

<iframe name="frame2" src="https://btvfit.punchpass.com/classes?embed=true&hidefilter=true" height="700" width="100%" frameborder="0" allowfullscreen></iframe> 


How to Display a Timetable that Combines Two or More Classes


Here's what the resulting iFrame looks like:

An example of an embedded schedule that combines two or more classes in Punchpass

Generating the Embed Code

Step 1 - From your schedule, copy the URLs for each class and noting the course IDs.

In this example, the filtered course URLs are:

https://btvfit.punchpass.com/classes?course%5B%5D=3

https://btvfit.punchpass.com/classes?course%5B%5D=5

And the filtered course IDs are:

course=3

course=5

Step 2 - Create the new combination URL

If using more than two classes, separate each class ID with a comma.

The combined URL becomes:

https://btvfit.punchpass.com/classes?course=3,5

The resulting source URL to use becomes:

https://btvfit.punchpass.com/classes?course=3,5&embed=true

Step 3: Update the iFrame code

Your embed code can be found in Manage Settings > Embedding Punchpass.

An example of iFrame source code in Punchpass

Update your iFrame embed code to use this new source URL.

<iframe name="frame2" src="https://btvfit.punchpass.com/classes?course=3,5&embed=true" height="700" width="100%" frameborder="0" allowfullscreen></iframe>



How to Display a Timetable with All the Classes on a Specific Date


Here's what the resulting iFrame looks like:

An example of an embedded schedule that shows classes starting on a certain date in Punchpass

Generating the Embed Code

Step 1 - Copy the embed code for the list view

Your embed code can be found in Manage Settings > Embedding Punchpass.

Step 2 - Update the iFrame source link to the specific date range
To show only the classes on a specific date, you'll set from_time= to limit the range of dates shown.

For example, to show only the classes on December 1, 2026, you'll set the from_time = 'December 1, 2026' and this will limit the classes.

Here is the resulting iFrame code:

<iframe name="frame2" src="https://btvfit.punchpass.com/classes?hidefilter=true&from_time='December 1, 2026'&embed=true" height="700" width="100%" frameborder="0" allowfullscreen></iframe>

How to Display a Timetable with a Specific Instructor's Classes

Here's what the resulting iFrame looks like:

An example of an embedded schedule that shows a specific instructor's classes in Punchpass


Generating the Embed Code

Step 1 - Copy the embed code for the list view

Your embed code can be found in Manage Settings > Embedding Punchpass.

Step 2 - Visit the schedule and filter the schedule for the instructor

An example of filtering the schedule in Punchpass in dark mode

Step 3 - Copy the filtered URL from the public schedule

In this example, the schedule link filtered for an instructor is https://btvfit.punchpass.com/classes?instructor%5B%5D=980194348

Step 3 - Update the iFrame source link to include the instructor ID
To show only the classes for a certain instructor, you'll append the instructor ID to the URL.

In this example, we've copied this portion of the URL, instructor%5B%5D=980194348 and are adding that to the iFrame source URL.

Here is the updated source link: https://btvfit.punchpass.com/classes?embed=true&instructor%5B%5D=980194348


And the updated iFrame code:

<iframe name="frame2" src="https://btvfit.punchpass.com/classes?embed=true&instructor%5B%5D=980194348" height="700" width="100%" frameborder="0" allowfullscreen></iframe>


How to Create a Series Landing Page

To create a series landing page on your website, you can embed your series schedule!

Step 1 - Copy your URL
To start, identify your series schedule link. This will be [yourbusiness].punchpass.com/series

Step 2 - Copy the embed code for your desired view
You'll paste your series link into the iFrame code. Here's an example:


<iframe name="frame2" src="https://[yourbusiness].punchpass.com/series?embed=true" height="700" width="100%" frameborder="0" allowfullscreen></iframe>


The result will look something like the following example:

Did this answer your question?