86K Webflow Domain List
NEW

CMS Add to Calendar Button

Example

CMS Add to Calendar Button

Description

Add a Calendar button for via your Webflow CMS via this custom Javascript and CSS. This enables your users to easily add events to their calendars based on dates/information in your Webflow CMS.

Instructions

  1. Add the HTML embed code to your Webflow collection list and hook it up to your Webflow CMS
  2. Add the CSS to your pages head custom code section
  3. Add the Javascript to your pages closing body custom code section

Javascript snippet


<!-- Add to closign body -->
<script src="https://cdn.jsdelivr.net/gh/commonpike/add-to-calendar-buttons@master/add-to-calendar.min.js"></script>

CSS snippet


<!-- Add to page head section -->
<style>
.add-to-calendar-widget {
  margin: 5px 0 !important;
}
.add-to-calendar-label {
  color: #1d1d1c !important;
  background-color: #fff !important;
  background-image: none !important;
  border-radius: 0 !important;
  padding: 10px 16px !important;
  border: none !important;
  box-shadow: none !important;
  transition: all .3s ease-out !important;
  font-size: 14px !important;
  margin: 0 !important;
}

.add-to-calendar-label:hover {
  background-color: #f7f4f0 !important;
}

.add-to-calendar-dropdown {
  padding: 4px 0px !important;
  border-radius: 0 !important;
  box-shadow: 0px 10px 26px rgba(0, 0, 0, 0.2) !important;
  width: 180px;
}

.add-to-calendar-dropdown a {
  padding: 4px 12px;
  opacity: 1 !important;
  background-color: #fff;
  transition: all .3s ease-out;
}

.add-to-calendar-dropdown a:hover {
  background-color: #f7f4f0;
}

.add-to-calendar-checkbox+div.add-to-calendar-dropdown a:before {
  position: relative;
  top: 2px;
}

.add-to-calendar-dropdown .icon-google:before {
  background-image: url(https://www.addevent.com/gfx/icon-google-t5.svg) !important;
  background-position: center;
  background-repeat: no-repeat;
}

.add-to-calendar-dropdown .icon-yahoo:before {
  background-image: url(https://www.addevent.com/gfx/icon-yahoo-t5.svg) !important;
  background-position: center;
  background-repeat: no-repeat;
}

.add-to-calendar-dropdown .icon-off365:before {
  background-image: url(https://www.addevent.com/gfx/icon-office365-t5.svg) !important;
  background-position: center;
  background-repeat: no-repeat;
}

.add-to-calendar-dropdown .icon-ical:before {
  background-image: url(https://www.addevent.com/gfx/icon-apple-t5.svg) !important;
  background-position: center;
  background-repeat: no-repeat;
}

.add-to-calendar-dropdown .icon-outlook:before {
  background-image: url(https://www.addevent.com/gfx/icon-outlook-t5.svg) !important;
  background-position: center;
  background-repeat: no-repeat;
}
</style>

HTML snippet


<!-- Add via embed to CMS collection list -->

<div title="Add to Calendar" class="add-to-calendar">
    <span class="start">{{START DATE}} {{START TIME}} {{AM/PM}}</span>
    <span class="end">{{END DATE}} {{END TIME}} {{AM/PM}}</span>
    <span class="timezone">America/Chicago</span>
    <span class="title">{{NAME}}</span>
    <span class="location">{{LOCATION}}</span>
		<span class="description">{{DESCRIPTION}}</span>
</div>
Reload Page after Form Submit

Reload Page after Form Submit

Automatically refresh your Webflow site's page after a form submit with this Javascript snippet. A great way of indicating that a form has been submitted to a user or refreshing the page for another submission.

Add/Remove Form Input Buttons

Add/Remove Form Input Buttons

Add or remove form input fields with buttons on your Webflow site. This allows your users to add or remove form fields based on buttons on your Webflow site. A great way of adding dynamic form elements to your Webflow site.

Mirror Click Script

Mirror Click Script

Trigger a click on another element when one element is clicked in Webflow. This is perfect for allowing one element to control a click of another element.

Random CMS Sort on Page Load

Random CMS Sort on Page Load

Webflow's random sort feature doesn't always work. This method allows for truly random sorting of Webflow CMS items on page load.

Draggable Text Area Input Resizing

Draggable Text Area Input Resizing

1

Make your default form inputs draggable and resizable on your Webflow sites with this CSS snippet. This CSS snippet allows for you to make your default form field inputs resizable by your users/visitors on your Webflow sites.

Custom Select Styling Multi-Select Input

Custom Select Styling Multi-Select Input

Design your own dropdowns and multi-select inputs in Webflow using Select2. With this Javascript code you'll be able to customize the look and design of the multi-select from the native browser select.

Split CMS Collection into Multiple Sections

Split CMS Collection into Multiple Sections

Split up your Webflow CMS collections into multiple sections with this Javascript code snippet. This allows you to easily break up a collection lists into multiple sections, a great way of adding your own elements in between a Webflow CMS collection list.

Draggable Elements

Draggable Elements

Make your site dynamic by adding draggable elements on your Webflow site with this simple Javascript code snippet.

DRAG
Real-time sorting by
Hide/show Items based on URL Parameter

Hide/show Items based on URL Parameter

Show or hide divs or elements based on the parameter within a URL in Webflow. This Javascript code allows you to make your Webflow site even more dynamic by allowing you to customize elements on the page based on the URL parameter provided.

Infinite CSS Marquee/Ticker Logo

Infinite CSS Marquee/Ticker Logo

An easy way to utilize CSS for Logo marquees and other sections in your Webflow site. An easier way to create an infinite looping marquee on your Webflow site than creating them manually with Webflow interactions.

Count Up Numbers on Page Scroll

Count Up Numbers on Page Scroll

When scrolling down the page numbers count up as they enter browser view via this Javascript snippet on your Webflow site. An easy way to add number count up to your Webflow site.

Prevent Input Zoom Scaling on Mobile

Prevent Input Zoom Scaling on Mobile

Prevent an input form zoom scaling on mobile on your Webflow site. This allows for a better user experience based on your sites design rather than mobile OS zoom default properties.

Bulk Delete 301 Redirects from Webflow Settings

Bulk Delete 301 Redirects from Webflow Settings

A simple way of bulk deleting 301 redirects from within Webflow's Hosting settings. This makes updating, cleaning up, removing 301's redirect a breeze rather than a labor intensive process.

Single Line Truncate Text

Single Line Truncate Text

Automatically truncate text that goes beyond a line on your Webflow site with this simple CSS script. This helps create uniformed design on your site by truncating text with ellipsis if they go beyond a single line.

Fix Finsweet CSS Styling Issues

Fix Finsweet CSS Styling Issues

This is used to normalize and reset any CSS used in the client-first system to correct any strange Webflow native issues as well as offer some additional functionality like truncating via CSS. This should be added to your global styles embed on your site.

Reload Page after Form Submit

Reload Page after Form Submit

Automatically refresh your Webflow site's page after a form submit with this Javascript snippet. A great way of indicating that a form has been submitted to a user or refreshing the page for another submission.

DRAG
Real-time sorting by