{"id":830,"date":"2016-06-24T17:03:58","date_gmt":"2016-06-24T17:03:58","guid":{"rendered":"http:\/\/artsci.case.edu\/documentation\/?page_id=830"},"modified":"2016-08-24T16:13:52","modified_gmt":"2016-08-24T16:13:52","slug":"using-the-calendar-shortcode","status":"publish","type":"page","link":"https:\/\/artsci.case.edu\/documentation\/using-the-calendar-shortcode\/","title":{"rendered":"Using the Calendar Shortcode"},"content":{"rendered":"<div class=\"row column-group-1\"><\/p>\n<div class=\"col-xs-12 col-sm-12 col-md-4 col-lg-4\"><\/p>\n<p>1. Before using the calendar shortcode, the calendar needs to be set to public. If you are the calendar&#8217;s owner or have the rights to make modifications, find the calendar under the <em>My calendars<\/em> list and click the down arrow next to its name. Then click <em>Share this Calendar<\/em> in the menu that appears to change the calendar&#8217;s privacy settings.<\/p>\n<p>If you do not have permission to change the privacy settings, contact the calendar&#8217;s owner.<\/p>\n<p>\n<\/div>\n<div class=\"col-xs-12 col-sm-12 col-md-8 col-lg-8\"><\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-medium wp-image-831\" src=\"https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000957\/calendar-1-600x492.png\" alt=\"calendar-1\" width=\"600\" height=\"492\" srcset=\"https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000957\/calendar-1-600x492.png 600w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000957\/calendar-1-768x629.png 768w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000957\/calendar-1-500x410.png 500w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000957\/calendar-1.png 1002w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>\n<\/div>\n<p><\/div>\n<hr \/>\n<div class=\"row column-group-2\"><\/p>\n<div class=\"col-xs-12 col-sm-12 col-md-4 col-lg-4\"><\/p>\n<p>2. To make the calendar public check the top two boxes (<em>Share this calendar with others<\/em> and <em>Make this calendar public<\/em>). After doing this, the calendar is publicly available to everyone so ensure that you are changing the sharing settings on\u00a0the correct calendar.<\/p>\n<p>\n<\/div>\n<div class=\"col-xs-12 col-sm-12 col-md-8 col-lg-8\"><\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-medium wp-image-833\" src=\"https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000956\/calendar-2-600x129.png\" alt=\"calendar-2\" width=\"600\" height=\"129\" srcset=\"https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000956\/calendar-2-600x129.png 600w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000956\/calendar-2-768x166.png 768w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000956\/calendar-2-1024x221.png 1024w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000956\/calendar-2-500x108.png 500w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000956\/calendar-2.png 1406w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>\n<\/div>\n<p><\/div>\n<hr \/>\n<div class=\"row column-group-3\"><\/p>\n<div class=\"col-xs-12 col-sm-12 col-md-4 col-lg-4\"><\/p>\n<p>3. Switch to the <em>Calendar Details<\/em> tab and scroll down to the <em>Embed This Calendar\u00a0<\/em>section. Copy the code from the\u00a0box that looks like this:<\/p>\n<p><code>&lt;iframe...rest of code...&lt;\/iframe&gt;<\/code><\/p>\n<p>Example:<\/p>\n<p><code>&lt;iframe src=\"https:\/\/calendar.google.com\/calendar\/embed?src=******%40case.edu&amp;ctz=America\/New_York\" style=\"border: 0\" width=\"800\" height=\"600\" frameborder=\"0\" scrolling=\"no\"&gt;&lt;\/iframe&gt;<\/code><\/p>\n<p>You may need to scroll down the text box to copy all of it. Make sure to copy\u00a0the entire code or the shortcode will not work. If you want to customize the calendar or add another calendar, click <em>Customize the color, size, and other options<\/em> and proceed to step 4 and 5, otherwise skip to step 6.<\/p>\n<p>\n<\/div>\n<div class=\"col-xs-12 col-sm-12 col-md-8 col-lg-8\"><\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-medium wp-image-834\" src=\"https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000953\/calendar-3-600x302.png\" alt=\"calendar-3\" width=\"600\" height=\"302\" srcset=\"https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000953\/calendar-3-600x302.png 600w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000953\/calendar-3-768x387.png 768w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000953\/calendar-3-1024x516.png 1024w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000953\/calendar-3-500x252.png 500w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000953\/calendar-3.png 1666w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>\n<\/div>\n<p><\/div>\n<hr \/>\n<div class=\"row column-group-4\"><\/p>\n<div class=\"col-xs-12 col-sm-12 col-md-4 col-lg-4\"><\/p>\n<p>4. On this page, you can use the customization options on the left to change the color, title, labels, size, etc. Once you change an option, the code in the top right will automatically change. When you are happy with your customization choices\u00a0copy the code for use in the shortcode.<\/p>\n<p>\n<\/div>\n<div class=\"col-xs-12 col-sm-12 col-md-8 col-lg-8\"><\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-medium wp-image-835\" src=\"https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000952\/calendar-4-600x278.png\" alt=\"calendar-4\" width=\"600\" height=\"278\" srcset=\"https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000952\/calendar-4-600x278.png 600w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000952\/calendar-4-768x356.png 768w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000952\/calendar-4-1024x475.png 1024w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000952\/calendar-4-500x232.png 500w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000952\/calendar-4.png 1666w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>\n<\/div>\n<p><\/div>\n<hr \/>\n<div class=\"row column-group-5\"><\/p>\n<div class=\"col-xs-12 col-sm-12 col-md-4 col-lg-4\"><\/p>\n<p>5. If you wish to include events from multiple calendars, scroll down a little further until you see the <em>Calendars to Display<\/em> label. Check the boxes left of the calendars you want to add to include their events. These events will display with different colors and you can customize what color they are by clicking the drop down arrow and selecting a color from the color palette provided.<\/p>\n<p>\n<\/div>\n<div class=\"col-xs-12 col-sm-12 col-md-8 col-lg-8\"><\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-medium wp-image-939\" src=\"https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000818\/CalendarsToDispaly-600x314.png\" alt=\"CalendarsToDisplay\" width=\"600\" height=\"314\" srcset=\"https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000818\/CalendarsToDispaly-600x314.png 600w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000818\/CalendarsToDispaly-768x403.png 768w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000818\/CalendarsToDispaly-1024x537.png 1024w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000818\/CalendarsToDispaly-500x262.png 500w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000818\/CalendarsToDispaly.png 1408w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>\n<\/div>\n<p><\/div>\n<hr \/>\n<div class=\"row column-group-6\"><\/p>\n<div class=\"col-xs-12 col-sm-12 col-md-4 col-lg-4\"><\/p>\n<p>6. In the WordPress page where you&#8217;d like to display your calendar\u00a0use the shortcode like this:<\/p>\n<p><code>[[casembed iframe='paste your code here']]<\/code><\/p>\n<p>Example:<\/p>\n<p><code>[[casembed iframe='&lt;iframe src=\"https:\/\/calendar.google.com\/calendar\/embed?src=******%40case.edu&amp;ctz=America\/New_York\" style=\"border: 0\" width=\"800\" height=\"600\" frameborder=\"0\" scrolling=\"no\"&gt;&lt;\/iframe&gt;']]<\/code><\/p>\n<p>\u00a0<strong>Important: a single quote follows the equals sign, do not use double quotes to enclose the calendar code or the shortcode will not work!<\/strong><\/p>\n<p>\n<\/div>\n<div class=\"col-xs-12 col-sm-12 col-md-8 col-lg-8\"><\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-medium wp-image-836\" src=\"https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000949\/calendar-5-600x289.png\" alt=\"calendar-5\" width=\"600\" height=\"289\" srcset=\"https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000949\/calendar-5-600x289.png 600w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000949\/calendar-5-768x370.png 768w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000949\/calendar-5-1024x493.png 1024w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000949\/calendar-5-520x250.png 520w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000949\/calendar-5-500x241.png 500w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000949\/calendar-5.png 1183w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>\n<\/div>\n<p><\/div>\n<hr \/>\n<div class=\"row column-group-7\"><\/p>\n<div class=\"col-xs-12 col-sm-12 col-md-4 col-lg-4\"><\/p>\n<p>7. Save or preview your page. If the shortcode is working properly, you should see your calendar appear on the frontend page. If not recheck the shortcode to make sure you are using the correct syntax, that you are using single quotes for the &lt;iframe&gt; . . . &lt;\/iframe&gt;, the calendar is public, and that you copied the right iframe code.<\/p>\n<p>\n<\/div>\n<div class=\"col-xs-12 col-sm-12 col-md-8 col-lg-8\"><\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-medium wp-image-837\" src=\"https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000947\/calendar-6-600x362.png\" alt=\"calendar-6\" width=\"600\" height=\"362\" srcset=\"https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000947\/calendar-6-600x362.png 600w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000947\/calendar-6-768x464.png 768w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000947\/calendar-6-1024x619.png 1024w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000947\/calendar-6-500x302.png 500w, https:\/\/artscimedia.case.edu\/wp-content\/uploads\/sites\/105\/2016\/06\/15000947\/calendar-6.png 1662w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>\n<\/div>\n<p><\/div>\n","protected":false},"excerpt":{"rendered":"<p><a href=\"https:\/\/artsci.case.edu\/documentation\/using-the-calendar-shortcode\/\" class=\"more-link\">Continue reading&#8230; <span class=\"screen-reader-text\">Using the Calendar Shortcode<\/span><\/a><\/p>\n","protected":false},"author":19,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"spay_email":""},"_links":{"self":[{"href":"https:\/\/artsci.case.edu\/documentation\/wp-json\/wp\/v2\/pages\/830"}],"collection":[{"href":"https:\/\/artsci.case.edu\/documentation\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/artsci.case.edu\/documentation\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/artsci.case.edu\/documentation\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/artsci.case.edu\/documentation\/wp-json\/wp\/v2\/comments?post=830"}],"version-history":[{"count":10,"href":"https:\/\/artsci.case.edu\/documentation\/wp-json\/wp\/v2\/pages\/830\/revisions"}],"predecessor-version":[{"id":839,"href":"https:\/\/artsci.case.edu\/documentation\/wp-json\/wp\/v2\/pages\/830\/revisions\/839"}],"wp:attachment":[{"href":"https:\/\/artsci.case.edu\/documentation\/wp-json\/wp\/v2\/media?parent=830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}