TIP: There are several ways to add Youtube and Vimeo videos to your content.
EXPLANATION: You can add videos to your T4 pages using the “Tools” option inside the T4 Editor using a link or adding an embed code. To keep readers engaged, we prefer adding the Youtube or Vimeo embed code inside the HTML Editor. To do this, Edit the T4 Section or Content, press Tools, and add the embed code to the Source code window. The following code will make the video fit all device sizes, the portion in yellow should be replaced with your Youtube id. You can use the same code for Vimeo, but change the link listed after src ( i.e., src=”changethispart”). Then you can use the T4 Preview option to see how the video looks on the page before publishing.
class= “flex-video widescreen responsive-embed”
Example: <div class=”flex-video widescreen responsive-embed”><iframe src=”https://www.youtube.com/embed/RDdbJxHYnKM“></iframe></div>
Note: The above was revised from the original tutorial September 18, 2015.