background video stop loop

Hi guys - I want my row background video to only play once then stop. No looping. I can control this in the video module but not in the row background.

Can someone shoot me a code snippet to change it?

thanks!
Chris

Hey Chris,

We are looking into this and will get back to you shortly.

Thanks!

KC

Hey Chris,

Try using the code snippet below and see if it works for you. You’ll need to place a class to the row where the video is assigned, .e.g, video-bg-noloop.

jQuery(window).load(function () {
    jQuery('.video-bg-noloop video').removeAttr('loop');
});

Ben

Hey Ben - Sorry for the delay getting back to you on this. Project got put on hold for a bit…

Thank you for you (as usual) quick response. Unfortunately, however, that code doesn’t work. Still looping.

Other ideas?

thanks!
Chris

Hey Chris,

Do you mind sharing temp admin access to the site so we can check?

Ben

I also want to stop the video in the row background to stop looping. Do you want my admin access? I also tried to use the snippit, but it didn’t work.

Thanks.

Hi Mike,

Did you follow Ben’s suggestion above by adding a custom class and using the jQuery?

Thanks,
Danny

Hi Danny,

I’m not sure why it didn’t work before, but the above snippit seems to work fine.

My mistake, thanks.

Ah I see now, it stays looping inside the builder, but when you hit ‘ready’ and view your website it works fine.

Hi Mike,

Thanks for the update and happy to hear your issue has been resolved.

Thanks,
Danny