How to download or subscribe to just one single event

If you wish to provide your calendar users with a link to subscribe (or download) to just one single event, that can be done by manually creating an HTML link using the Calendar Subscription Link in conjunction with the Entry ID of the event.

Here's how to do that:

1) On the form Settings page, click on the GravityCalendar tab, then hover your mouse cursor over the calendar feed you want to modify and click on the Edit link.

Screenshot showing the GravityCalendar feeds listing under the Form Settings page.

2) Inside the calendar feed configuration screen, scroll to the bottom of the page and ensure that the "Enable calendar subscription link" option is checked so that you can copy the download URL.

3) On the same screen, scroll up to the Event Description section, and inside the text input, you'll need to create a link by following these steps:

  1. First, we'll write the HTML link: <a href="">Subscribe to this Event</a>
  2. Inside the double quotes of the href attribute, we'll paste the Calendar Subscription Link we copied before: <a href="https://debug.try.gravitykit.com/wp-json/gravitycalendar/v1/feeds/ecb3a2d226384ed1f0551408eed355f7">Subscribe to this Event</a>
  3. Now, inside that link, between /feeds/ and the feed hash /ecb3a2d.../, we'll write the {entry_id} Merge Tag, so it points to the current event: <a href="https://debug.try.gravitykit.com/wp-json/gravitycalendar/v1/feeds/{entry_id}/ecb3a2d226384ed1f0551408eed355f7">Subscribe to this Event</a>

Screenshot of the Event Description section inside the calendar feed configuration screen.

4) Scroll down to the Calendar Settings section and ensure that the "Allow HTML Content" option is enabled. This will allow the link we created above to work on the front-end calendar.

5) You can scroll down again to click on the Save Settings button and check your calendar. The link to subscribe to an individual event should be visible.

Screenshot of an event from the calendar showing the Subscribe to this Event link

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us