> ## Documentation Index
> Fetch the complete documentation index at: https://help.kajabi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Install an add to calendar button to a page

> Learn to use an Add to Calendar Button for your site visitors to easily add your events to their calendars.

Create a Calendar Button with AddEvent, a tool compatible with Apple Calendar, Google Calendar, Outlook, Outlook.com, and Yahoo Calendar, to help your site visitors easily add your events to their calendars.

<Note>
  **Important:** Kajabi now allows members to save upcoming coaching sessions to their personal calendar. [<u>Learn more</u>](/articles/products/coaching/how-to-create-a-coaching-product#add-to-calendar-for-coaching-sessions)
</Note>

## Overview

Calendar Buttons provide a quick, effortless way for your users to add your events to their personal calendars. With Kajabi, you can add your preferred Calendar Button using the Custom Code Block. This guide walks you through adding a Calendar Button with [AddEvent](https://www.addevent.com/).

<Note>
  **Note:** If you have a custom domain connected to your Kajabi site, you will need to register your custom domain with AddEvent. Adding your domain to AddEvent is available with AddEvent's free "Hobby" plan.
</Note>

The best recommendation is to research and find the tool that best fits your business.

***

## Add custom code to your page

Create a Custom Code Block:

1. Open the **Website** tab from the Dashboard.
2. Select the **Pages** tab.
3. Open the page editor for your Page. [Learn more](/articles/website/pages/how-to-get-to-the-page-editor)
4. In the sidebar, select the Section of your Page where you wish to include your Add to Calendar Button.
5. Click **Add Content**.
6. Select **Custom Code**:

<div className="w-full aspect-video">
  <iframe src="https://fast.wistia.net/embed/iframe/fu7xa6n2jf" allow="autoplay; fullscreen" allowFullScreen className="w-full h-full" />
</div>

Learn more about adding [Custom Code](/articles/website/pages/add-custom-code-to-pages#add-and-remove-a-custom-code-block) for details.

***

## Add calendar button code from AddEvent

To use the AddEvent add-to-calendar button, create an account with AddEvent. [Learn more](https://www.addevent.com/)

<Tip>
  **Tip:** The add-to-calendar button is available with AddEvent's free "Hobby" plan!
</Tip>

If your Kajabi site is connected to a custom domain, add your domain to your AddEvent account:

1. Navigate to your AddEvent account.
2. Click **Domains** from the left menu.
3. Enter your full custom domain.
4. Click **Add domain**:

<img src="https://mintcdn.com/kajabi-support/ig0P6X_YYqhSgRa-/articles/images/1e77cdc6_1260800054390.png?fit=max&auto=format&n=ig0P6X_YYqhSgRa-&q=85&s=d05d9140bca1b14456c2545574916053" alt="AddEvent Domains" width="5086" height="1324" data-path="articles/images/1e77cdc6_1260800054390.png" />

After creating your AddEvent account and adding a Custom Code Block to your page on Kajabi, add the AddEvent Calendar Code Snippet.

<Warning>
  **Important:** Introducing custom code to your site can open you up to vulnerabilities and potential malware attacks. We recommend using vulnerability tools like [VirusTotal](https://www.virustotal.com/gui/home/url) or [Snyk](https://snyk.io/) to scan any custom code that you intend to use and apply certain [best practices](/articles/website/domains/code-based-customizations) to help reduce potential impact.
</Warning>

1. Copy the entire code exactly as shown below:

```html theme={null}
<html><head><!-- AddEvent script --><script type="text/javascript" 
src="https://addevent.com/libs/atc/1.6.1/atc.min.js" 
async defer></script></head><body><!-- Button code --><div title="Add to Calendar" class="addeventatc">    Add to Calendar    <span class="start">04/26/2020 06:00 PM</span>    <span class="end">04/26/2020 11:00 PM</span>    <span class="timezone">America/Los_Angeles</span>    <span class="title">Summary of the event</span>    <span class="description">Description of the event</span>    <span class="location">Location of the event</span></div></body></html>
```

2. Navigate back to your Custom Code Block on Kajabi.
3. Click the **Custom Code Block** to open the sidebar editor.
4. Navigate to the sidebar panel and paste the copied code into the **Custom Code** field.
5. Click **Save** to keep your changes:

<div className="w-full aspect-video">
  <iframe src="https://fast.wistia.net/embed/iframe/02lwn2xa0j" allow="autoplay; fullscreen" allowFullScreen className="w-full h-full" />
</div>

***

## Edit your calendar event

To customize your Event information in your Add to Calendar Button:

1. Locate this snippet of Code in your newly pasted Add to Calendar code:

```html theme={null}
<span class="start">04/26/2020 06:00 PM</span>    <span class="end">04/296/2020 11:00 PM</span>    <span class="timezone">America/Los_Angeles</span>    <span class="title">Summary of the event</span>    <span class="description">Description of the event</span>    <span class="location">Location of the event</span>
```

<Tip>
  **Tip:** Expand your view of the Code by clicking and dragging the bottom right corner of the Text Box field in the left sidebar.
</Tip>

2. Configure the parameters within each line of code.
3. Enter your Event information for each parameter as shown below:

<div className="w-full aspect-video">
  <iframe src="https://fast.wistia.net/embed/iframe/9xc4k1wdte" allow="autoplay; fullscreen" allowFullScreen className="w-full h-full" />
</div>

To learn more about formatting your parameters, [click here](https://www.addevent.com/add-to-calendar-button/#parameters).

Be sure to click **Save** to keep your changes.

### Calendar parameters

**Start Date and Time**

```html theme={null}
<span class="start">04/26/2020 06:00 PM</span>
```

**End Date and Time**

```html theme={null}
<span class="end">04/26/2020 11:00 PM</span>
```

**Timezone**

```html theme={null}
<span class="timezone">America/Los_Angeles</span>
```

**Title of Event**

```html theme={null}
<span class="title">Summary of the event</span>
```

**Description of the Event**

```html theme={null}
<span class="description">Description of the event</span>
```

**Location of the Event**

```html theme={null}
<span class="location">Location of the event</span>
```

Learn more about customizing your Add to Calendar Button and including additional information to set alarm reminders, attach a Facebook event, include an organizer email, and more by visiting [AddEvent documentation](https://www.addevent.com/documentation/add-to-calendar-button).

***

## Customize your custom code block

After editing your Calendar Button to fit your Event, customize the appearance of your Block on your page. Learn to [customize your Custom Code Block](/articles/website/pages/add-custom-code-to-pages) for details.

Remember to click **Save** to keep your changes.

Lastly, [preview your page](/articles/website/pages/preview-your-page) and test your calendar button:

<div className="w-full aspect-video">
  <iframe src="https://fast.wistia.net/embed/iframe/3y1rbf91wo" allow="autoplay; fullscreen" allowFullScreen className="w-full h-full" />
</div>
