{"id":517,"date":"2017-10-18T13:14:08","date_gmt":"2017-10-18T17:14:08","guid":{"rendered":"http:\/\/amy.imarketbeta.com\/blog\/?page_id=517"},"modified":"2017-11-14T12:20:38","modified_gmt":"2017-11-14T20:20:38","slug":"videos","status":"publish","type":"page","link":"http:\/\/amy.imarketbeta.com\/blog\/part-2-staff-user-guide\/creating-and-editing-pages-and-weblinks\/special-content-types\/videos\/","title":{"rendered":"Videos"},"content":{"rendered":"<h1>Videos<\/h1>\n<h2>Best practices<\/h2>\n<p><b>Videos should come from external sites (e.g. YouTube).<br \/>\n<\/b>We will not host videos (except in rare cases, such as hero background videos. In those cases, please open a ticket for Development to handle.)<\/p>\n<p><b>Videos should be embedded using the <code>[!youtube_embed!]<\/code> shortcode (details below).<br \/>\n<\/b>If the video is not hosted on YouTube (occasionally videos are hosted on Vimeo or Facebook, e.g.), then we will use an alternate method to embed it. Please open a ticket to Development in this case.<\/p>\n<p><strong>The <code>[!youtube_embed!]<\/code> shortcode will not work on non-responsive websites.<\/strong><br \/>\nIf you need to add a video to a non-responsive website, please open a ticket to Development.<\/p>\n<h2>Adding a Video with the [!youtube_embed!] Shortcode<\/h2>\n<p>Using the <code>[!youtube_embed!]<\/code> shortcode comes with a variety of benefits, including reducing page load speed (by loading the video only <i>if<\/i> a user clicks the play button), and making sure that videos are responsive by default. All YouTube videos should be added to sites using this method.<\/p>\n<ol>\n<li>Paste the following shortcode where you would like the video to appear:<br \/>\n<code><code>[!youtube_embed? &amp;video_id=`<strong>12345<\/strong>` &amp;mode=`image` &amp;autoplay=`TRUE`!]<\/code><\/code><\/li>\n<li>Replace <b>12345<\/b> with the <span class=\"tooltips \" style=\"\" title=\"The ID is everything that comes after the equals sign (=) in the YouTube link and before any ampersand (&amp;amp;) symbol (example illustrated below).\"><strong>ID<\/strong><\/span> of the YouTube video you want to embed.<\/li>\n<li>Save, and visit the page on the site to make sure that the video appears how you expected it to.<\/li>\n<li>Click the Play Button* on the video to make sure that the correct video has been added and will play on the site.<\/li>\n<\/ol>\n<p><b>*<\/b>If you do not see a \u201cPlay\u201d button appear over the video, please open a ticket for Development requesting that the \u201cPlay\u201d button be added to videos on the site.<\/p>\n<h3 style=\"padding-left: 30px;\">Example<b>: <\/b><\/h3>\n<p style=\"padding-left: 30px;\"><b>Youtube Link: <\/b>https:\/\/www.youtube.com\/watch?v=<strong>xXAy_QU5WE8<\/strong><\/p>\n<p style=\"padding-left: 30px;\"><b>Video ID: <\/b>xXAy_QU5WE8<\/p>\n<p style=\"padding-left: 30px;\"><b>Final shortcode to add video to the page: <\/b><code><br \/>\n[!youtube_embed? &amp;video_id=`xXAy_QU5WE8` &amp;mode=`image` &amp;autoplay=`true`!]<\/code><\/p>\n<p style=\"padding-left: 30px;\"><strong>Output:<br \/>\n<\/strong><img loading=\"lazy\" class=\"size-full wp-image-1088\" src=\"http:\/\/amy.imarketbeta.com\/blog\/wp-content\/uploads\/2017\/10\/video-default.png\" alt=\"\" width=\"516\" height=\"489\" srcset=\"http:\/\/amy.imarketbeta.com\/blog\/wp-content\/uploads\/2017\/10\/video-default.png 516w, http:\/\/amy.imarketbeta.com\/blog\/wp-content\/uploads\/2017\/10\/video-default-300x284.png 300w\" sizes=\"(max-width: 516px) 100vw, 516px\" \/><\/p>\n<h2>Wrapping Text<\/h2>\n<p>If you want text to wrap around your video, add the <code>&lt;div class=\"image-right\"&gt;&lt;\/div&gt;<\/code> or <code>&lt;div class=\"left\"&gt;&lt;\/div&gt;<\/code> HTML tags around your video.<\/p>\n<p><strong>Note<\/strong>: This will require editing the resource&#8217;s content as HTML. You can click the HTML icon in the <a href=\"http:\/\/amy.imarketbeta.com\/blog\/part-2-staff-user-guide\/creating-and-editing-pages-and-weblinks\/tinymce-editor\/\">TinyMCE Toolbar <\/a>to open a dialog box with the content displayed in HTML. <img loading=\"lazy\" class=\"alignnone wp-image-1013 \" src=\"http:\/\/amy.imarketbeta.com\/blog\/wp-content\/uploads\/2017\/10\/view-html.png\" alt=\"\" width=\"32\" height=\"23\" \/><em><br \/>\n<\/em><\/p>\n<p style=\"padding-left: 30px;\"><b>Video to the right of text: <\/b><\/p>\n<p><code><\/p>\n<p style=\"padding-left: 30px;\">&lt;div class=\"image-right\"&gt;<br \/>\n[!youtube_embed? &amp;video_id=`12345` &amp;mode=`image` &amp;autoplay=`TRUE`!]<br \/>\n&lt;\/div&gt;<\/p>\n<p><\/code><\/p>\n<p style=\"padding-left: 30px;\"><b>Video to the left of text: <\/b><\/p>\n<p><code><\/p>\n<p style=\"padding-left: 30px;\">&lt;div class=\"image-left\"&gt;<br \/>\n[!youtube_embed? &amp;video_id=`12345` &amp;mode=`image` &amp;autoplay=`TRUE`!]<br \/>\n&lt;\/div&gt;<\/p>\n<p><\/code><\/p>\n<p style=\"padding-left: 30px;\"><strong>Output:<\/strong><img loading=\"lazy\" class=\"wp-image-1090 size-full\" src=\"http:\/\/amy.imarketbeta.com\/blog\/wp-content\/uploads\/2017\/10\/video-wrap-text-e1509120732345.png\" alt=\"\" width=\"1141\" height=\"466\" srcset=\"http:\/\/amy.imarketbeta.com\/blog\/wp-content\/uploads\/2017\/10\/video-wrap-text-e1509120732345.png 1141w, http:\/\/amy.imarketbeta.com\/blog\/wp-content\/uploads\/2017\/10\/video-wrap-text-e1509120732345-300x123.png 300w, http:\/\/amy.imarketbeta.com\/blog\/wp-content\/uploads\/2017\/10\/video-wrap-text-e1509120732345-768x314.png 768w, http:\/\/amy.imarketbeta.com\/blog\/wp-content\/uploads\/2017\/10\/video-wrap-text-e1509120732345-1050x429.png 1050w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 905px, 1075px\" \/><\/p>\n<h2>Video Gallery<\/h2>\n<p>Development can add functionality so that videos appear side by side in rows. This can be useful for pages with multiple videos, such as video galleries. To use this feature, modify your shortcode to the following (again, replacing the <b>12345<\/b> with your video\u2019s ID):<\/p>\n<p><code>[!youtube_embed? &amp;video_id=`12345` &amp;mode=`image` &amp;autoplay=`true` &amp;container_tpl=`video_gallery_vid`!]<\/code><\/p>\n<p><strong>If the videos do not appear,<\/strong> it may be because the video gallery functionality is not installed on your site. In this case, please open a ticket to Development requesting we add this option.<\/p>\n<figure id=\"attachment_1089\" aria-describedby=\"caption-attachment-1089\" style=\"width: 821px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" class=\"size-full wp-image-1089\" src=\"http:\/\/amy.imarketbeta.com\/blog\/wp-content\/uploads\/2017\/10\/video-gallery.png\" alt=\"\" width=\"821\" height=\"169\" srcset=\"http:\/\/amy.imarketbeta.com\/blog\/wp-content\/uploads\/2017\/10\/video-gallery.png 821w, http:\/\/amy.imarketbeta.com\/blog\/wp-content\/uploads\/2017\/10\/video-gallery-300x62.png 300w, http:\/\/amy.imarketbeta.com\/blog\/wp-content\/uploads\/2017\/10\/video-gallery-768x158.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 905px, 1075px\" \/><figcaption id=\"caption-attachment-1089\" class=\"wp-caption-text\">Video &#8211; Gallery Option<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>How to add videos to webpage content areas.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":512,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/amy.imarketbeta.com\/blog\/wp-json\/wp\/v2\/pages\/517"}],"collection":[{"href":"http:\/\/amy.imarketbeta.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/amy.imarketbeta.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/amy.imarketbeta.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/amy.imarketbeta.com\/blog\/wp-json\/wp\/v2\/comments?post=517"}],"version-history":[{"count":1,"href":"http:\/\/amy.imarketbeta.com\/blog\/wp-json\/wp\/v2\/pages\/517\/revisions"}],"predecessor-version":[{"id":1658,"href":"http:\/\/amy.imarketbeta.com\/blog\/wp-json\/wp\/v2\/pages\/517\/revisions\/1658"}],"up":[{"embeddable":true,"href":"http:\/\/amy.imarketbeta.com\/blog\/wp-json\/wp\/v2\/pages\/512"}],"wp:attachment":[{"href":"http:\/\/amy.imarketbeta.com\/blog\/wp-json\/wp\/v2\/media?parent=517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/amy.imarketbeta.com\/blog\/wp-json\/wp\/v2\/categories?post=517"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/amy.imarketbeta.com\/blog\/wp-json\/wp\/v2\/tags?post=517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}