Embedding a responsive Calendar

A Responsive Calendar is a Calendar that will automatically resize itself depending on the size of the internet browser it is in. This means that your Calendar will look good on a computer, smart phone, or any other mobile device. If the website into which you are embedding is responsive and may be resized to very small window sizes such as a smart phone, then you should embed a Responsive Calendar into that website. This is so that your Calendar may also resize smaller and adjust to the small browser sizes.

This is what the live version of an embedded full calendar will look like:

The Responsive Calendar embedding editor will allow you to make changes to the colors, Calendar Views, language, and other visual details. You will be able to preview these changes on the right side of your configuration screen or you will be able to click the “new window” icon on the right side of the text field next to “Link to Calendar” to see your Calendar in a new window.

embedding responsive calendars

Finding the embed code

First, make sure that your Calendar is Publicly Shared, otherwise your Calendar will not be available for display on your website without requiring web visitors to log into an approved Keep&Share account to view it. Then you will need to click on the gray “Customize” button above the Calendar that you want to embed.

embedding responsive calendars

Once you are in the embedding editor screen, you can play around with different options for your Calendar on the left-hand side of the screen and previewing the results on the right-hand side of the screen. If you’re curious what a feature does, just hover your mouse over the blue links to read more about each option available.

Once you have copied your Responsive Calendar embed code, it will look similar to this:

Example:

<iframe allowTransparency="true" src="http://www.keepandshare.com/calendar13/embed_calendar.php?i=533&style=r&fmt=std&startdate=&n=7&h=&w=&dbc=&hc=&htc=&tbc=&tbtc=&ltc=&ntc=&navicon=caret&fsz=11&nav=y&ac=y&sparse=n&lang=&ifr=y&frw=&frh=&frs=no" width="100%" height="100%" scrolling="no" frameborder="0"></iframe>

Editing your Embedded Responsive Calendar

This copied iFrame code will go into the body of your page. You will see in the iFrame code that there is a place where you can choose the width and height of your responsive calendar (highlighted in yellow). Set the height of your responsive calendar to whatever you choose. The height can be a percentage or an exact pixel height. It does not matter what height you choose as long as the width of the the embedded calendar is a percentage, so that the calendar will be responsive.

If the calendar does not behave correctly with a percentage (%) height, then switch to an exact pixel (px) height to lock the height of the calendar.

The width should usually be set to 100% because that means 100% of the container element that the iframe is placed in. However, 80% or 50% or any other percentage would still make the calendar responsive.

If you don’t want the calendar to be responsive, but instead want to lock it to a certain size, then you would need to set both the height and the width to pixel values.

Calendar with percentage height and width:

<iframe allowTransparency="true" src="http://www.keepandshare.com/calendar13/embed_calendar.php?i=533&style=r&fmt=std&startdate=&n=7&h=&w=&dbc=&hc=&htc=&tbc=&tbtc=&ltc=&ntc=&navicon=caret&fsz=11&nav=y&ac=y&sparse=n&lang=&ifr=y&frw=&frh=&frs=no" width="100%" height="100%" scrolling="no" frameborder="0"></iframe>

Calendar with pixel height and percentage width:

<iframe allowTransparency="true" src="http://www.keepandshare.com/calendar13/embed_calendar.php?i=533&style=r&fmt=std&startdate=&n=7&h=&w=&dbc=&hc=&htc=&tbc=&tbtc=&ltc=&ntc=&navicon=caret&fsz=11&nav=y&ac=y&sparse=n&lang=&ifr=y&frw=&frh=&frs=no" width="100%" height="600px" scrolling="no" frameborder="0"></iframe>

Calendar with pixel height and pixel width:

<iframe allowTransparency="true" src="http://www.keepandshare.com/calendar13/embed_calendar.php?i=533&style=r&fmt=std&startdate=&n=7&h=&w=&dbc=&hc=&htc=&tbc=&tbtc=&ltc=&ntc=&navicon=caret&fsz=11&nav=y&ac=y&sparse=n&lang=&ifr=y&frw=&frh=&frs=no" width="800px" height="600px" scrolling="no" frameborder="0"></iframe>

The exception to the above rule is if you want to make a page that embeds only the <iframe> element, and you want it to take up the entire browser window in a responsive fashion, then you must add a <style> block to the <head> section of the page (highlighted below).

Example:

<html>
<head>
<style>
html, body{
height:100%;
}
</style>

</head>
<body>
<iframe allowTransparency="true" src="http://www.keepandshare.com/calendar13/embed_calendar.php?i=533&style=r&fmt=std&startdate=&n=7&h=&w=&dbc=&hc=&htc=&tbc=&tbtc=&ltc=&ntc=&navicon=caret&fsz=11&nav=y&ac=y&sparse=n&lang=&ifr=y&frw=&frh=&frs=no" width="100%" height="100%" scrolling="no" frameborder="0"></iframe>
</body>
</html>

Once your Calendar is embedded into a webpage, it will automatically update to latest content in the Calendar on Keep&Share with every page refresh. To change the settings on how the Calendar is embedded however, you will need to paste in a new line of embed code to update those changes.

Changing the Calendar breakpoint

When your responsive calendar gets small enough either horizontally or vertically, your calendar will change from month view to event view. This makes it easier for visitors to your embedded calendar to read your events in smaller browser windows.

embedding responsive calendars

The default breakpoints for when your responsive calendar changes to event view is when the calendar is smaller than 768 pixels in width and 461 pixels in height.

If these breakpoints are too large and you would like your calendar to not change to event view until it is smaller than these sizes, you can change this in your responsive calendar settings. First you will need to be on the responsive calendar configuration screen (the same screen where you copy the code for your calendar) See the image below:

embedding responsive calendars