Snippets: Visual Composer Pageable Container jwplayer Not Working Fix

Basically the way the pageable containers work is by hiding whatever is inside the non-active tabs. Certain players like jwplayer can not properly render the media if it's hidden by default. The following CSS will display all your tabs by default then hide them once the site is loaded. While this will create an unwanted "flash" of the content before the site is loaded it will make things work.

 body .vc_tta.vc_general .vc_tta-panel-body { display: block; }
 body.wpex-window-loaded .vc_tta.vc_general .vc_tta-panel-body { display: none; }

Snippet Type: PHP

Posted Under: Other

All PHP snippets should be added via a child theme's functions.php file.