(Free) Video Block: Hover show caption, Click open Lightbox popup

Description

  • Video Block (Youtube Video)
  • Hover Video – Show Caption text
  • Click Video – Open Video in Lightbox Popup with Caption under video

(Hover)

538 1

(Click)

538 2

#1. Install code

First, hover on page where you use Video Block > Click Gear icon

538 3

Next, click Advanced > Paste this code

<!-- @tuanphan video block caption overlay lightbox on click -->
<link rel="stylesheet" href="https://code.beaverhero.com/file?filename=1761795621927videoblockhoverclick.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
<div id="ytLightbox" class="yt-lightbox"><div class="yt-lightbox-content"><button class="yt-close-btn" id="ytCloseBtn">Close</button><div class="yt-video-container"><iframe id="ytPlayer" class="yt-video-player"
src=""
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen></iframe></div><div class="yt-lightbox-caption" id="ytCaption"></div></div></div>
<script src="https://code.beaverhero.com/file?filename=1761795577176videoblockhoverclick.js"></script>

538 (free)

#2. Usage

Make sure you use Youtube video in Video Blocks

538 5

Make sure you added Video Caption

538 6

Buy me a coffee