<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Auto Embed Youtube Videos Responsive - How-to and Troubleshooting - wpForo 2.0				            </title>
            <link>https://wpforo.com/community/how-to-and-troubleshooting-2/auto-embed-youtube-videos-responsive/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Sat, 15 Aug 2026 21:57:36 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Auto Embed Youtube Videos Responsive</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/auto-embed-youtube-videos-responsive/#post-62189</link>
                        <pubDate>Fri, 25 Feb 2022 10:49:00 +0000</pubDate>
                        <description><![CDATA[Updated, removed some uneeded code.
add_filter(&#039;wpforo_content_after&#039;, &#039;wpforo_custom_video_embed&#039;, 10);

function wpforo_custom_video_embed($content)
{

    $paterns = array();

   ...]]></description>
                        <content:encoded><![CDATA[<p>Updated, removed some uneeded code.</p>
<pre contenteditable="false">add_filter('wpforo_content_after', 'wpforo_custom_video_embed', 10);

function wpforo_custom_video_embed($content)
{

    $paterns = array();

    $paterns[] = "/&lt;a+&gt;\s**youtube.com\/watch\?v=(+)(*)/i";

    $paterns[] = "/&lt;a+&gt;\s**youtu.be\/(+)(*)/i";

    $content = preg_replace($paterns, "", $content);

    return $content;

}</pre>
<p> </p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>dimalifragis</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/auto-embed-youtube-videos-responsive/#post-62189</guid>
                    </item>
				                    <item>
                        <title>RE: Auto Embed Youtube Videos Responsive</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/auto-embed-youtube-videos-responsive/#post-62177</link>
                        <pubDate>Fri, 25 Feb 2022 00:28:49 +0000</pubDate>
                        <description><![CDATA[A little better code, remove some of Youtube branding like &quot;watch it on Youtube and some controls&quot;.
Smoother for user.
 
add_filter(&#039;wpforo_content_after&#039;, &#039;wpforo_custom_video_embed&#039;, 10...]]></description>
                        <content:encoded><![CDATA[<p>A little better code, remove some of Youtube branding like "watch it on Youtube and some controls".</p>
<p>Smoother for user.</p>
<p> </p>
<pre contenteditable="false">add_filter('wpforo_content_after', 'wpforo_custom_video_embed', 10);

function wpforo_custom_video_embed($content)
{
    
    $paterns = array();
    
    $paterns[] = "/&lt;a+&gt;\s**youtube.com\/watch\?v=(+)(*)/i";
    
    $paterns[] = "/&lt;a+&gt;\s**youtu.be\/(+)(*)/i";
    
    $content = preg_replace($paterns, "", $content);
    
    return $content;
    
}</pre>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>dimalifragis</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/auto-embed-youtube-videos-responsive/#post-62177</guid>
                    </item>
				                    <item>
                        <title>Auto Embed Youtube Videos Responsive</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/auto-embed-youtube-videos-responsive/#post-62172</link>
                        <pubDate>Thu, 24 Feb 2022 20:42:32 +0000</pubDate>
                        <description><![CDATA[After struggling with it:
I was finally able to auto-embed Youtube Videos FULLY RESPONSIVE. So here is what i did:
1. Installed and Activated this tiny plugin:
2. Changed the posted snipp...]]></description>
                        <content:encoded><![CDATA[<p>After struggling with it:</p>
<p>https://wpforo.com/community/general-discussions/original-wp-embed-function-for-youtube/paged/5/#post-62171</p>
<p>I was finally able to auto-embed Youtube Videos FULLY RESPONSIVE. So here is what i did:</p>
<p>1. Installed and Activated this tiny plugin:</p>
<p>https://wordpress.org/plugins/youtube-widget-responsive/</p>
<p>2. Changed the posted snippet of code by @Robert a little bit:</p>
<pre contenteditable="false">add_filter('wpforo_content_after', 'wpforo_custom_video_embed', 10);

function wpforo_custom_video_embed($content)
{
    
    $paterns = array();
    
    $paterns[] = "/&lt;a+&gt;\s**youtube.com\/watch\?v=(+)(*)/i";
    
    $paterns[] = "/&lt;a+&gt;\s**youtu.be\/(+)(*)/i";
    
    $content = preg_replace($paterns, "", $content);
    
    return $content;
    
}</pre>
<p>3. NOTHING ELSE is needed, since the css and iframe are handled by the plugin of (1)</p>
<p>It seems to work fine for me, please check it out yourself and let me know. Also it could be expanded or a better regex maybe. I'm not an expert. @tutrix is the master of all that. And @robert of cource.</p>
<p>I hope i have helped.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>dimalifragis</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/auto-embed-youtube-videos-responsive/#post-62172</guid>
                    </item>
							        </channel>
        </rss>
		