What is the Add-to-Calendar Widget?
The SendToCal embeddable widget is a self-contained, high-performance Web Component (<sendtocal-button>) that renders an interactive "Add to Calendar" dropdown directly on your website.
Instead of redirecting visitors away from your landing page, visitors click the button on your site and immediately see platform-aware options:
- Google Calendar (opens in a new tab with event details pre-filled)
- Apple Calendar (instantly downloads a valid RFC 5545
.icsfile for iOS and macOS) - Microsoft Outlook & Office 365 (opens Outlook Web or triggers desktop prompt)
- Yahoo Calendar
Because the widget is built as a standard HTML5 Custom Element, it works across every major CMS and site builder without requiring external JavaScript frameworks like React or jQuery.
The Standard Two-Step Embed
Embedding the widget on any website takes less than two minutes:
Step 1: Add the script tag to your <head>
Paste this script once into your site's global <head> section:
<script src="https://sendtocal.com/widget.js" type="module"></script>Performance note: Loading with
type="module"ensures the script loads asynchronously without blocking your page's initial render or hurting your Google Core Web Vitals score. You only need to include this script once, even if you display multiple calendar buttons on the same page.
Step 2: Place the custom button tag
Paste this snippet wherever you want the button to appear in your page layout:
<sendtocal-button event-token="YOUR_EVENT_TOKEN"></sendtocal-button>Replace YOUR_EVENT_TOKEN with the unique public token from your event (found on your SendToCal dashboard under My Events → Embed Widget </>).
Platform-Specific Installation Guides
1. Plain HTML / Static Sites
Add the <script> tag inside your <head> tags, and place <sendtocal-button> inside any <div> or <section> container:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Annual Developer Summit 2026</title>
<script src="https://sendtocal.com/widget.js" type="module"></script>
</head>
<body>
<div class="event-card">
<h1>Annual Developer Summit 2026</h1>
<p>Join us on October 15 for live keynotes and technical workshops.</p>
<!-- Add to Calendar Button -->
<sendtocal-button event-token="<your_event_token>"></sendtocal-button>
</div>
</body>
</html>2. WordPress (Gutenberg Block Editor)
- In your WordPress admin, edit the page or post where you want the button.
- Click the
+(Add Block) icon and search for Custom HTML. - In the Custom HTML block, paste both snippets together:
<script src="https://sendtocal.com/widget.js" type="module"></script> <sendtocal-button event-token="YOUR_EVENT_TOKEN"></sendtocal-button> - Click Preview or Update. The interactive button will appear styled and functional.
3. Webflow
- Open your project in the Webflow Designer.
- From the Add Elements (
+) panel, drag an Embed element (Advanced) onto your canvas. - Paste the
<script>and<sendtocal-button>snippet into the HTML Embed Code Editor. - Click Save & Close and publish your site.
4. Squarespace
- Edit the section where you want the button.
- Click Add Block and select Code.
- Ensure the mode is set to HTML (leave "Display Source" toggled off).
- Paste the snippet and click Save.
5. Shopify
- In your Shopify Admin, go to Online Store → Themes → Customize.
- Add a Custom Liquid or Custom HTML section to your product or landing page template.
- Paste the code snippet and save.
Customizing Button Styles & Templates
SendToCal allows you to design custom button templates from your dashboard under the Templates tab:
- Colors & Contrast: Customize background colors, text colors, and hover states to match your exact brand palette.
- Shapes & Corners: Choose between rounded corners, sharp corners, or modern pill buttons.
- Interaction Style:
- Click mode: The dropdown menu opens when clicked (recommended for mobile touch screens).
- Hover mode: The dropdown menu opens when hovering on desktop, automatically falling back to click on mobile touch screens where hover does not exist.
Private Events & Passcode Security
If you protect an event with a passcode (available on Entry and Pro plans), the embeddable widget adapts automatically:
- To protect confidential details, the widget will never leak the event title, start time, description, or attendee list to third-party domains.
- The widget displays a neutral, branded "Private Event" button.
- Clicking the button opens the secure event landing page where guests must enter the correct passcode before viewing details or downloading calendar links.
Need Quick Calendar Links for Emails Instead?
Web widgets run on JavaScript, which email clients (like Gmail, Apple Mail, and Outlook) block for security reasons.
If you need calendar links or HTML buttons to paste inside email newsletters or confirmation emails, use our Free Calendar Link Generator to generate ready-to-paste email HTML snippets in seconds!