Looping Self Hosted Videos Support › Forums › Verde – WP Plugin › Looping Self Hosted Videos Tagged: verde, video background This topic has 7 replies, 2 voices, and was last updated 7 years ago by CreaboxThemes. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts May 24, 2016 at 12:32 am #5352 Joseph P BabiParticipant How do you get a self hosted video to loop in this plugin? May 24, 2016 at 6:51 am #5354 CreaboxThemesKeymaster Hi Joseph, you have to edit the code. Go to the page Plugins > Editor, select the plugin Verde and look for the file video.php in the right list. In this file you have to change the line 16 to the next code: $content.= 'BV.show(\''.verde_top('video_internal').'\',{ambient: true, loop: true});'; Regards May 25, 2016 at 1:46 am #5356 Joseph P BabiParticipant Hi There, Thanks for the tip but it doesn’t work. http://vidgoofficial.com May 25, 2016 at 6:42 am #5358 CreaboxThemesKeymaster Ok, edit the same file and copy all the next code: <?php $content = ' <script type="text/javascript"> if( !device.tablet() && !device.mobile() ) { (function($) { "use strict"; // initialize BigVideo var BV = new $.BigVideo(); BV.init(); '; if (verde_top('video_sound') == 'enable'){ $content.= 'BV.show(\''.verde_top('video_internal').'\',{loop:true});'; }else{ $content.= 'BV.show(\''.verde_top('video_internal').'\',{ambient:true,loop:true});'; } $content.='})(jQuery); } else { $(\'#bgimg\').addClass(\'poster-image\'); } </script>'; ?> Regards This reply was modified 7 years ago by CreaboxThemes. May 25, 2016 at 6:32 pm #5360 Joseph P BabiParticipant This didn’t work either. May 25, 2016 at 11:15 pm #5362 CreaboxThemesKeymaster Hi, sorry but the previous code was wrong. This is the correct: <?php $content = ' <script type="text/javascript"> if( !device.tablet() && !device.mobile() ) { (function($) { "use strict"; // initialize BigVideo var BV = new $.BigVideo({doLoop:true}); BV.init(); '; if (verde_top('video_sound') == 'enable'){ $content.= 'BV.show(\''.verde_top('video_internal').'\')'; }else{ $content.= 'BV.show(\''.verde_top('video_internal').'\',{ambient:true});'; } $content.='})(jQuery); } else { $(\'#bgimg\').addClass(\'poster-image\'); } </script>'; ?> Regards This reply was modified 7 years ago by CreaboxThemes. This reply was modified 7 years ago by CreaboxThemes. May 30, 2016 at 4:43 pm #5368 Joseph P BabiParticipant Works like a charm. Thanks for everything! you guys are the best support we’ve had from themeforst! May 30, 2016 at 7:46 pm #5369 CreaboxThemesKeymaster Your welcome. If you need something more, contact me 😉 Regards Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In