<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>video &#8211; Snippets</title>
	<atom:link href="http://wp.djtedfunke.com/tag/video/feed/" rel="self" type="application/rss+xml" />
	<link>http://wp.djtedfunke.com</link>
	<description></description>
	<lastBuildDate>Tue, 01 Jan 2019 21:37:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.3</generator>

<image>
	<url>http://wp.djtedfunke.com/wp-content/uploads/2018/12/cropped-front-end_developer-2-512-32x32.png</url>
	<title>video &#8211; Snippets</title>
	<link>http://wp.djtedfunke.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Video Container</title>
		<link>http://wp.djtedfunke.com/video-container/</link>
		
		<dc:creator><![CDATA[tadej]]></dc:creator>
		<pubDate>Tue, 01 Jan 2019 21:37:06 +0000</pubDate>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[video]]></category>
		<guid isPermaLink="false">http://wp.djtedfunke.com/?p=94</guid>

					<description><![CDATA[Add responsive container to embeds. Add this to your theme’s functions.php: And next up, we need to add the CSS that makes it responsive to&#8230;]]></description>
										<content:encoded><![CDATA[
<p>Add responsive container to embeds. Add this to your theme’s functions.php:</p>



<pre class="wp-block-code"><code>function alx_embed_html( $html ) {
    return '&lt;div class="video-container">' . $html . '&lt;/div>';
}
add_filter( 'embed_oembed_html', 'alx_embed_html', 10, 3 );
add_filter( 'video_embed_html', 'alx_embed_html' ); // Jetpack</code></pre>



<p>And next up, we need to add the CSS that makes it responsive to our style.css:</p>



<pre class="wp-block-code"><code>.video-container { 
  position: relative; 
  padding-bottom: 56.25%; 
  height: 0; 
  overflow: hidden; 
}

.video-container iframe, 
.video-container object, 
.video-container embed, 
.video-container video { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
}</code></pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
