Gallery Lightbox Video Autoplay

Description

  • make video in gallery block (grid) autoplay, both grid view and lightbox view
  • view demo – password: abc
  • buy me a coffee

10.26c01v2 Gallery Lightbox Video Autoplay

#1. Install Code

#1.1. Hover on Page where you use Gallery Block (Grid) > Click Gear icon

10.26c01v2 Gallery Lightbox Video Autoplay

#1.2. Click Advanced > Paste this code (You can also add code to Footer Injection or Page Header Injection [with Portfolio, Store, Blog, Event])

<!-- 10.26c30v02 Gallery Block Video AutoPlay -->
<script>
window.GalleryVideoAutoplayConfig = {
  videoSelector: '.sqs-gallery .sqs-video-wrapper',
  showControls: false
};
</script>
<script src="https://code.beaverhero.com/gallerysgrid/1026c30v02galleryblockgridvideoautoplay.js"></script>

10.26c01v2 Gallery Lightbox Video Autoplay

#2. Customize

#2.1. If you use Personal/Basic Plan, you can add an Embed Block under Gallery Block

Portfolio Filter v2 10 (1)

Then click Code Snippet > Embed Data > Paste this code

<script>
window.GalleryVideoAutoplayConfig = {
  videoSelector: '.sqs-gallery .sqs-video-wrapper',
  showControls: false
};
</script>
<script src="https://code.beaverhero.com/gallerysgrid/1026c30v02galleryblockgridvideoautoplay.js"></script>

10.26c01v2 Gallery Lightbox Video Autoplay

Buy me a coffee