<?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"

			>

	<channel>
		<title>BlueOwlCreative  &#187;  Topic: Error with Video in Tabs element</title>
		<atom:link href="http://blueowlcreative.com/support_wp/forums/topic/tabs-element-error-in-second-tab/feed/" rel="self" type="application/rss+xml" />
		<link>http://blueowlcreative.com/support_wp/forums/topic/tabs-element-error-in-second-tab/feed/</link>
		<description></description>
		<pubDate>Sat, 18 Jul 2026 02:57:25 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.5.3-5249</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>http://blueowlcreative.com/support_wp/forums/topic/tabs-element-error-in-second-tab/#post-18734</guid>
					<title><![CDATA[Error with Video in Tabs element]]></title>
					<link>http://blueowlcreative.com/support_wp/forums/topic/tabs-element-error-in-second-tab/#post-18734</link>
					<pubDate>Fri, 04 Apr 2014 13:23:32 +0000</pubDate>
					<dc:creator>javierdealfonso</dc:creator>

					<description>
						<![CDATA[
						<p>Hi BlueOwl,</p>
<p>I enter the following code:<br />
<code>[tabs tab1=&quot;MASSPHONING - The Tool&quot; tab2=&quot;MASSPHONING - The Concept&quot;][tab id=1]&lt;iframe src=&quot;http://player.vimeo.com/video/76261768?title=0&amp;byline=0&amp;portrait=0&amp;color=ffffff&amp;autoplay=0&quot; height=&quot;720&quot; width=&quot;1280&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;[/tab][tab id=2]&lt;iframe src=&quot;http://player.vimeo.com/video/76261768?title=0&amp;byline=0&amp;portrait=0&amp;color=ffffff&amp;autoplay=0&quot; height=&quot;720&quot; width=&quot;1280&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;[/tab][/tabs]</code></p>
<p>WordPress renders:</p>
<pre><code>&lt;iframe src=&quot;http://player.vimeo.com/video/76261768?title=0&amp;byline=0&amp;portrait=0&amp;color=ffffff&amp;autoplay=0&quot; height=&quot;720&quot; width=&quot;1280&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;iframe src=&quot;http://player.vimeo.com/video/76262044?title=0&amp;byline=0&amp;portrait=0&amp;color=ffffff&amp;autoplay=0&quot; height=&quot;720&quot; width=&quot;1280&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;</code></pre>
<p>But when the page is loaded, the result is:</p>
<pre><code>&lt;iframe frameborder=&quot;0&quot; allowfullscreen=&quot;&quot; src=&quot;http://player.vimeo.com/video/76261768?title=0&amp;byline=0&amp;portrait=0&amp;color=ffffff&amp;autoplay=0&quot; data-aspectratio=&quot;0.5625&quot; style=&quot;width: 578px; height: 325.125px;&quot;&gt;
&lt;iframe frameborder=&quot;0&quot; allowfullscreen=&quot;&quot; src=&quot;http://player.vimeo.com/video/76262044?title=0&amp;byline=0&amp;portrait=0&amp;color=ffffff&amp;autoplay=0&quot; data-aspectratio=&quot;0.5625&quot; style=&quot;width: 300px; height: 168.75px;&quot;&gt;</code></pre>
<p>Which renders the video embedded in the second tab smaller than the one embedded in the first tab.</p>
<p>Could you give a hand here?</p>
<p>Thanks in advance,</p>
<p>Javier </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://blueowlcreative.com/support_wp/forums/topic/tabs-element-error-in-second-tab/#post-18735</guid>
					<title><![CDATA[Reply To: Error with Video in Tabs element]]></title>
					<link>http://blueowlcreative.com/support_wp/forums/topic/tabs-element-error-in-second-tab/#post-18735</link>
					<pubDate>Fri, 04 Apr 2014 20:25:52 +0000</pubDate>
					<dc:creator>javierdealfonso</dc:creator>

					<description>
						<![CDATA[
						<p>Hi again,</p>
<p>If we use the Vimeo shortcode&#8230;</p>
<p><code>[tabs tab1=&quot;MASSPHONING - The Tool&quot; tab2=&quot;MASSPHONING - The Concept&quot;][tab id=1][vimeo id=&quot;76261768&quot; width=&quot;1280&quot; height=&quot;720&quot;][/tab][tab id=2][vimeo id=&quot;76262044&quot; width=&quot;1280&quot; height=&quot;720&quot;][/tab][/tabs]</code></p>
<p>&#8230; then the video in the second tab is not even shown, as you can see at <a href="http://www.massphoning.com/0-tests" rel="nofollow">http://www.massphoning.com/0-tests</a>.</p>
<p>Regards,</p>
<p>Javier</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://blueowlcreative.com/support_wp/forums/topic/tabs-element-error-in-second-tab/#post-18740</guid>
					<title><![CDATA[Reply To: Error with Video in Tabs element]]></title>
					<link>http://blueowlcreative.com/support_wp/forums/topic/tabs-element-error-in-second-tab/#post-18740</link>
					<pubDate>Sat, 05 Apr 2014 08:39:07 +0000</pubDate>
					<dc:creator>javierdealfonso</dc:creator>

					<description>
						<![CDATA[
						<p>Hi BlueOwl,</p>
<p>Just in case this helps to find the problem: when using the Vimeo shortcode, if you resize the browser the second video suddenly appears, but then the first one disappears. If you resize, the empty tab gets the video content, but the other tab gets empty.</p>
<p>Regards,</p>
<p>Javier</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://blueowlcreative.com/support_wp/forums/topic/tabs-element-error-in-second-tab/#post-18764</guid>
					<title><![CDATA[Reply To: Error with Video in Tabs element]]></title>
					<link>http://blueowlcreative.com/support_wp/forums/topic/tabs-element-error-in-second-tab/#post-18764</link>
					<pubDate>Sat, 05 Apr 2014 17:15:23 +0000</pubDate>
					<dc:creator>BlueOwl</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Javier,</p>
<p>You are totally right, thanks for the extensive info as well. The videos are made responsive via a JS bit of code that basically forces their width to be inherited by a video&#8217;s parent width, that way on all screens resolutions we know a video would fit perfectly. The problem with a video in a tab comes from the fact that an inactive tab has a width of 0, thus on page load the video also inherits that width, when the screen is resized the video inherits the parent width and the active tab&#8217;s video gets shown and the inactive tabs&#8217; videos are shrunk to 0.<br />
We&#8217;ll add some code to the tab activation script that will resize the videos one more time a tab gets clicked, that will ensure the videos are always shown, provided you want the responsive full-width parent videos. If you want fixed size videos (for example you want to set their width and height explicitly in the tabs and don&#8217;t want them responsively resizing at all times) we could simply remove the reponsiveness of the videos in the tabs. Let me know which one you want and I will give you the code. <img src="http://blueowlcreative.com/support_wp/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /> </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://blueowlcreative.com/support_wp/forums/topic/tabs-element-error-in-second-tab/#post-18765</guid>
					<title><![CDATA[Reply To: Error with Video in Tabs element]]></title>
					<link>http://blueowlcreative.com/support_wp/forums/topic/tabs-element-error-in-second-tab/#post-18765</link>
					<pubDate>Sat, 05 Apr 2014 18:03:30 +0000</pubDate>
					<dc:creator>javierdealfonso</dc:creator>

					<description>
						<![CDATA[
						<p>I see, the responsive code is the one we need.</p>
<p>Thank you for your prompt answer,</p>
<p>Javier</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://blueowlcreative.com/support_wp/forums/topic/tabs-element-error-in-second-tab/#post-18770</guid>
					<title><![CDATA[Reply To: Error with Video in Tabs element]]></title>
					<link>http://blueowlcreative.com/support_wp/forums/topic/tabs-element-error-in-second-tab/#post-18770</link>
					<pubDate>Sat, 05 Apr 2014 20:13:02 +0000</pubDate>
					<dc:creator>BlueOwl</dc:creator>

					<description>
						<![CDATA[
						<p>Ok, here you go. Edit your JS/aqua.common.js, find this line:</p>
<p><code>jQuery(jQuery(this).attr(&#039;href&#039;)).show();</code></p>
<p>and right after it add this:</p>
<pre><code>var $allVideos = jQuery(jQuery(this).attr(&#039;href&#039;)).find(&quot;iframe[src^=&#039;http://player.vimeo.com&#039;], iframe[src^=&#039;http://www.youtube.com&#039;], object, embed&quot;).not(&#039;.rev_slider iframe&#039;);
		
           $allVideos.each(function() {
		if(jQuery(this).attr(&#039;data-aspectRatio&#039;)==undefined){
			Query(this).attr(&#039;data-aspectRatio&#039;, this.height / this.width)
		}
		jQuery(this).removeAttr(&#039;height&#039;).removeAttr(&#039;width&#039;);
			
    		var nWidth = jQuery(this).parent().width();
    	    	var $el = jQuery(this);
    	    	$el
    	    	    .width(nWidth)
    	    	    .height(nWidth * $el.attr(&#039;data-aspectRatio&#039;));
    	    	  
    	    });</code></pre>
<p>This will make sure the videos are resized upon clicking on the TABs. <img src="http://blueowlcreative.com/support_wp/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /> </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://blueowlcreative.com/support_wp/forums/topic/tabs-element-error-in-second-tab/#post-18771</guid>
					<title><![CDATA[Reply To: Error with Video in Tabs element]]></title>
					<link>http://blueowlcreative.com/support_wp/forums/topic/tabs-element-error-in-second-tab/#post-18771</link>
					<pubDate>Sat, 05 Apr 2014 21:22:15 +0000</pubDate>
					<dc:creator>javierdealfonso</dc:creator>

					<description>
						<![CDATA[
						<p>I&#8217;m afraid I can&#8217;t find that line in the 2.0 version of aqua.common.js. There is this line: <code>jQuery(this).show();</code></p>
<p>If I replace that line and add your code like so:</p>
<pre><code>	jQuery(jQuery(this).attr(&#039;href&#039;)).show();

var $allVideos = jQuery(jQuery(this).attr(&#039;href&#039;)).find(&quot;iframe[src^=&#039;http://player.vimeo.com&#039;], iframe[src^=&#039;http://www.youtube.com&#039;], object, embed&quot;).not(&#039;.rev_slider iframe&#039;);
		
           $allVideos.each(function() {
		if(jQuery(this).attr(&#039;data-aspectRatio&#039;)==undefined){
			Query(this).attr(&#039;data-aspectRatio&#039;, this.height / this.width)
		}
		jQuery(this).removeAttr(&#039;height&#039;).removeAttr(&#039;width&#039;);
			
    		var nWidth = jQuery(this).parent().width();
    	    	var $el = jQuery(this);
    	    	$el
    	    	    .width(nWidth)
    	    	    .height(nWidth * $el.attr(&#039;data-aspectRatio&#039;));
    	    	  
    	    });
</code></pre>
<p>Then the videos appear on both tabs, but there is no responsiveness at all, as you can see at <a href="http://www.massphoning.com/0-tests" rel="nofollow">http://www.massphoning.com/0-tests</a>.</p>
<p>Regards,</p>
<p>Javier</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://blueowlcreative.com/support_wp/forums/topic/tabs-element-error-in-second-tab/#post-18786</guid>
					<title><![CDATA[Reply To: Error with Video in Tabs element]]></title>
					<link>http://blueowlcreative.com/support_wp/forums/topic/tabs-element-error-in-second-tab/#post-18786</link>
					<pubDate>Sun, 06 Apr 2014 14:32:06 +0000</pubDate>
					<dc:creator>BlueOwl</dc:creator>

					<description>
						<![CDATA[
						<p>Sorry the line in question was:</p>
<p><code>jQuery(jQuery(this).attr(&#039;href&#039;)).fadeIn();</code></p>
<p>You don&#8217;t need to replace it, just add the code after it. <img src="http://blueowlcreative.com/support_wp/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /> </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://blueowlcreative.com/support_wp/forums/topic/tabs-element-error-in-second-tab/#post-18790</guid>
					<title><![CDATA[Reply To: Error with Video in Tabs element]]></title>
					<link>http://blueowlcreative.com/support_wp/forums/topic/tabs-element-error-in-second-tab/#post-18790</link>
					<pubDate>Sun, 06 Apr 2014 14:47:10 +0000</pubDate>
					<dc:creator>javierdealfonso</dc:creator>

					<description>
						<![CDATA[
						<p>Still no responsiveness I&#8217;m afraid, and the page jumps when clicking the tabs, as you can see at <a href="http://www.massphoning.com/0-tests" rel="nofollow">http://www.massphoning.com/0-tests</a>.<br />
This is the whole code block:</p>
<pre><code>/* TABS */
jQuery.fn.tabs = function() {
	var selector = this;
	
	this.each(function() {
		var obj = jQuery(this); 
		
		jQuery(obj.attr(&#039;href&#039;)).hide();
		
		jQuery(obj).click(function() {

			jQuery(obj).siblings().removeClass(&#039;selected&#039;);
			jQuery(obj.attr(&#039;href&#039;)).siblings(&#039;.tab-content&#039;).hide();
			
			jQuery(this).addClass(&#039;selected&#039;);
			
			jQuery(jQuery(this).attr(&#039;href&#039;)).fadeIn();
			var $allVideos = jQuery(jQuery(this).attr(&#039;href&#039;)).find(&quot;iframe[src^=&#039;http://player.vimeo.com&#039;], iframe[src^=&#039;http://www.youtube.com&#039;], object, embed&quot;).not(&#039;.rev_slider iframe&#039;);
		
           $allVideos.each(function() {
		if(jQuery(this).attr(&#039;data-aspectRatio&#039;)==undefined){
			Query(this).attr(&#039;data-aspectRatio&#039;, this.height / this.width)
		}
		jQuery(this).removeAttr(&#039;height&#039;).removeAttr(&#039;width&#039;);
			
    		var nWidth = jQuery(this).parent().width();
    	    	var $el = jQuery(this);
    	    	$el
    	    	    .width(nWidth)
    	    	    .height(nWidth * $el.attr(&#039;data-aspectRatio&#039;));
    	    	  
    	    });
			return false;
		});
	});

	jQuery(this).show();
	jQuery(this).parent().children(&#039;a:first-child&#039;).click();
};
</code></pre>
<p>The embedded videos further down the page have also lost their responsiveness.</p>
<p>Regards,<br />
Javier</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://blueowlcreative.com/support_wp/forums/topic/tabs-element-error-in-second-tab/#post-18792</guid>
					<title><![CDATA[Reply To: Error with Video in Tabs element]]></title>
					<link>http://blueowlcreative.com/support_wp/forums/topic/tabs-element-error-in-second-tab/#post-18792</link>
					<pubDate>Sun, 06 Apr 2014 19:58:43 +0000</pubDate>
					<dc:creator>BlueOwl</dc:creator>

					<description>
						<![CDATA[
						<p>Ok, try mine:</p>
<pre><code>
/* TABS */
jQuery.fn.tabs = function() {
	var selector = this;
	
	this.each(function() {
		var obj = jQuery(this); 
		
		jQuery(obj.attr(&#039;href&#039;)).hide();
		
		jQuery(obj).click(function() {

			jQuery(obj).siblings().removeClass(&#039;selected&#039;);
			jQuery(obj.attr(&#039;href&#039;)).siblings(&#039;.tab-content&#039;).hide();
			
			jQuery(this).addClass(&#039;selected&#039;);
			
			jQuery(jQuery(this).attr(&#039;href&#039;)).show();
			var $allVideos = jQuery(jQuery(this).attr(&#039;href&#039;)).find(&quot;iframe[src^=&#039;http://player.vimeo.com&#039;], iframe[src^=&#039;http://www.youtube.com&#039;], object, embed&quot;).not(&#039;.rev_slider iframe&#039;);
			
			$allVideos.each(function() {
  				
				
				if(jQuery(this).attr(&#039;data-aspectRatio&#039;)==undefined){
					jQuery(this).attr(&#039;data-aspectRatio&#039;, this.height / this.width)
				}
				jQuery(this).removeAttr(&#039;height&#039;).removeAttr(&#039;width&#039;);
			
    		    var nWidth = jQuery(this).parent().width();
    	    	var $el = jQuery(this);
    	    	$el
    	    	    .width(nWidth)
    	    	    .height(nWidth * $el.attr(&#039;data-aspectRatio&#039;));
    	    	  
    	    });
			
			
			return false;
		});
	});

	jQuery(this).show();
	jQuery(this).parent().children(&#039;a:first-child&#039;).click();
};</code></pre>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

