Skip to main content

Add a 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.

A calendar button lets visitors add your event to their own calendar. You create one with AddEvent, a separate tool that works with Apple Calendar, Google Calendar, Outlook, Outlook.com, and Yahoo Calendar, and place it on a page with a custom code block. You need an AddEvent account, and the calendar button is available on AddEvent's free "Hobby" plan.

To let members save coaching sessions to their calendar, see Add Coaching sessions to a calendar. To add calendar links to a Kajabi Event, see Events overview.

Add a custom code block to a page

To add a custom code block to a page, open the page in the editor and add the block to a section.

  1. From the Dashboard, click Website, then Website Pages or Landing Pages.

  2. Click the Title of the page to open it in the editor. To learn more, see the page editors overview.

  3. In the sidebar, select the section where you want the calendar button.

  4. Click Add block.

  5. Select Custom Code.

For more detail, see Add custom code to pages.


Add the calendar button code from AddEvent

To add the calendar button code from AddEvent, create an AddEvent account if you don't have one, register your custom domain if you use one, and then paste the AddEvent code into the custom code block. Create an AddEvent account.

Add a custom domain to AddEvent

If a custom domain is connected to your Kajabi site, you need to register the domain with AddEvent. Adding a domain is available on AddEvent's free "Hobby" plan. To add a custom domain to AddEvent:

  1. Open your AddEvent account.

  2. Click Domains in the left menu.

  3. Enter the full custom domain.

  4. Click Add domain.

Screenshot of the Domains page in AddEvent for the steps above.

Paste the calendar button code into the custom code block

To paste the AddEvent calendar button code into the custom code block, first copy the sample code, then paste it into the block you added.

Warning: Custom code can open your site to vulnerabilities and malware attacks. We recommend scanning any custom code you plan to use with a tool like VirusTotal or Snyk, and following the custom code recommendations to reduce the potential impact.

Copy the entire code exactly as shown:

<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>

To paste the copied code:

  1. Return to the page editor and click the custom code block to open the sidebar editor.

  2. Paste the copied code into the code field.

  3. Click Save.

This video walks through the steps in this section.


Edit the calendar event details

To change the event details in the calendar button, edit the parameters in the code you pasted into the custom code block. These lines set the event details:

<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>

Tip: To see more of the code, click and drag the bottom right corner of the text box field in the sidebar.

  1. In the code field, find the start, end, timezone, title, description, and location lines.

  2. Replace the sample value in each line with your event information.

  3. Click Save.

This video walks through the steps in this section.

For help formatting each parameter, see the AddEvent parameter reference.

Calendar button parameters

The AddEvent code sets each event detail with one parameter line:

  • Start date and time: <span class="start">04/26/2020 06:00 PM</span>

  • End date and time: <span class="end">04/26/2020 11:00 PM</span>

  • Timezone: <span class="timezone">America/Los_Angeles</span>

  • Title of the event: <span class="title">Summary of the event</span>

  • Description of the event: <span class="description">Description of the event</span>

  • Location of the event: <span class="location">Location of the event</span>

To set alarm reminders, attach a Facebook event, include an organizer email, and more, see the AddEvent documentation.


Customize the custom code block and test the button

To finish adding the calendar button, customize how the custom code block looks on the page, then preview the page and test the button.

  1. Customize the appearance of the block. For options, see Add custom code to pages.

  2. Click Save.

  3. Preview the page, then click the calendar button to test it. To learn how, see Preview a page.

This video walks through previewing the page and testing the calendar button.

Did this answer your question?