Hello… my embedded Vimeo videos work fine. Click the thumbnail, lightbox opens, plays automatically (that’s how I configured it), fullscreen button displays/works until…
The videos ends. Then, the fullscreen button, in fact the entire playbar, does not display. You must press the Escape key to exit fullscreen which, for many of my users, will be an unknown remedy.
This may be a Vimeo issue but I thought I would begin with you first.
There’s only a single video at my website (URL above).
Thank you.
]]>Hello… is it possible to configure the lightbox to close after the video ends?
I saw an 11 year old post in this forum that stated it’s not possible.
I was hoping there is a way in 2025.
Thank you.
]]>Hello, is there a way to make the video thumbnails line up horizontally? When I put multiple URLs next to each other without a line break, it still lays out the thumbnails on top of each other vertically.
]]>Hi again,
I would like to change the CSS of the class .ytp-cued-thumbnail-overlay-image and add contain to it.
.ytp-cued-thumbnail-overlay-image {
background-size: contain !important;
-moz-background-size: contain !important;
-webkit-background-size: contain!important;
}
The CSS code above does not work directly as it the element located inside the YouTube iframe. Is there any alternate way to achieve this? Thanks a lot.
Hi, thanks for your great plugin.
Is there any way to hide the vimeo related videos from the end?
[video_lightbox_vimeo5 video_id=”15437192″ width=”640″ height=”480″ alt=”Interior”]
I can achieve it in YouTube but not in vimeo.
[video_lightbox_youtube video_id=”9xwazD5SyVg&rel=0&playlist=9xwazD5SyVg” width=”640″ height=”480″ alt=”Interior”]
Thanks in advance.
]]>latest plugin update does not allow 100% width to be set which we have been using in the past for a long time.
]]>I’ve installed the plugin and when I click on “Activate” it’s not activating? It states that its compatible with my current WP version, but not sure why it won’t activate? Any ideas?
]]>I’m experiencing an issue with your video popup plugin. The video popup only appears when I click on the absolute bottom pixel of the image, not anywhere else on the image itself.
Ideally, I’d like the popup to trigger when clicking anywhere on the image. Is this a known limitation, or is there a setting I might have missed that controls the clickable area?
Is there a code or snippet that can be added to remove related videos showing at the end of a YouTube video?
]]>Dear Support Team,
I have identified a security vulnerability within the wp video-lightbox plugin.
I am providing the details below.
"CWE 80 Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)"
Flaw Category: Cross-Site Scripting
Description: This call contains a cross-site scripting (XSS) flaw. The application
populates the HTTP response with untrusted input, allowing an attacker
to embed malicious content, such as Javascript code, which will be
executed in the context of the victim's browser. XSS vulnerabilities are
commonly exploited to steal or manipulate cookies, modify presentation
of content, and compromise confidential information, with new attack
vectors being discovered on a regular basis.
Following are the errors associated with the issue.
Video_Lightbo x_Settings_Pa ge.prettyPhot…
Please provide further details or clarifications regarding the errors.
Thank you.
After I close the lightbox-Youtube player window, under it there is a second popup window with a Youtube player with an erroneous video. Each time it is a new video ID, and each time this ID is not working. Apparently, this is an advertising add-on for the plugin. Tell me how to remove this advertisement, if possible.
]]>I would like to use Google Analytics (GA4) to track the number of plays each of the videos gets.
I’ve tried tracking the clicks to the links that your plugin creates but that doesn’t seem to work.
Do you have any ideas on how the number of plays could be tracked?
]]>Using this shortcode:
[video_lightbox_youtube video_id=XwUhieQOzFc width=640 height=480 auto_thumb=1]
the thumbnail is shown with the ‘play’ icon underneath it, not superimposed.
And clicking on the thumbnail opens the Youtube site, not a popup.
]]>Your examples do not show code for a hosted video. Tried this. Would like correct code to do that.
<a width ="960" height="540" rel="wp-video-lightbox" title="XYZ"<img src="https://example.com/wp-content/uploads/anchor-image-XYZ.jpg" width="960" height="540" alt="image-description" /></a>
]]>
I embedded a video from Google Drive. It’s play ok but when I want to turn video into full screen mode then it’s show full screen is unavailable. I used dooplay theme for making this site. Please help me.
Link of image : https://drive.google.com/file/d/1JDTINZOHGRbaaP1r2GYa1DjU-qYClA__/view?usp=drivesdk
]]>Updating from PHP7.4 to PHP8 and beyond gives the following error:
Fatal error: Uncaught TypeError: Unsupported operand types: string / string in /wp-content/plugins/wp-video-lightbox/misc_functions.php:114
Here is the proposed fix:
The error message Unsupported operand types: string / string
at the line $aspect_ratio = $height/$width;
implies that the operation is attempting to divide two string values, which is not a valid operation in PHP.
In the context of your wp_vid_lightbox_youtube_handler
function, the $width
and $height
variables are being assigned values from an associative array ($atts
), which are initially being passed as strings. In PHP, you cannot perform mathematical operations on strings directly without converting them to numbers.
To fix this error, you can convert these string values to integers or floats before the division operation. Here’s how you can do this:
Change this line:
phpCopy code
$aspect_ratio = $height/$width;
to:
phpCopy code
$aspect_ratio = (float)$height / (float)$width;
The (float)
before $height
and $width
casts these variables to float numbers before the division operation is performed. This should help you eliminate the fatal error. However, you should ensure that your width and height parameters are always numeric and not zero to avoid division by zero errors.
Great plugin, solves the issue of video pop up but not flexible enough for users to change the size of youtube video thumbnail. It will be great if this is possible.
]]>Do I understand correctly that once a visitor clicks the anchor image, when the popup window opens the video should start playing without the visitor having to click again? Mine isn’t. Please advise.
]]>Is it possible to put a video from the media gallery of WordPress?
Not from any video platform as Youtube or Vimeo
]]>Getting “This video does not exist” again. Another code tweak needed??
]]>When I close the lightbox, the video still seems to keep playing because there is a constant background music playing.
Even when I stop the embedded video before closing the lightbox, it seems to play the sound from the start.
Could you advise?
]]>How can i link images to create a gallery slideshow?
Currently i’m looping through my images and adding links:
<a href="<?php echo $image['url']; ?>" rel="wp-video-lightbox">
<img src="<?php echo $image['sizes']['medium']; ?>" alt="<?php echo $image['alt']; ?>" />
</a>
But they are just individual lightboxes, I can’t scroll through the images.
]]>Hi. I am really struggling here. In the page link I’ve provided, I have 5 videos on the lower part of the right column (below the What’s Wrong with Websites video), and I’m using WP Video Lightbox to display them with the following shortcodes (varied for ID and thumbnail link, of course):
[video_lightbox_vimeo5 video_id=”812876935″ width=”640″ height=”480″ anchor=”https://genoo.com/wp-content/uploads/2023/04/IBS-Thumbnail.png”%5D
The video linked above is 21 seconds and basically scrolls through a website with two additional navigation clicks, but it will only show for one to 4 seconds on the website. I want the video to loop and set Vimeo to do that, but, thinking that might be the issue, I turned that off and told it to end on the thumbnail. The same thing is happening with the Shardeez video (next one down).
I can’t get them to autoplay even though the Autoplay Slideshow and Autoplay Video settings are both checked in the Video Lightbox settings.
I’m on 1.9.7 of Video Lightbox, WordPress 6.2, and PhP 7.4.33. The site theme is Divi / Kriar Nuevo child theme.
If you want to test my embed code you’ll need to tell me the website to allow because the video is restricted to specific websites in Vimeo.
Please advise. This isn’t looking good at present, and I know your plugin has worked before on an earlier version of this website, though not with these specific videos.
Thank you.
]]>Hello, I am wondering if this can connect with Advanced Custom Fields (ACF) Oembed blocks playback. Want to be able to pull from several posts, the Oembed from each, and have some nice playback effect. (Or does it only work on videos in the WP core body field, etc.) Thank you!
]]>Can this be used to have a page pop up in a light box?
]]>Hey there,
I’m having issues getting videos to auto-play once the thumbnail is clicked. If I enable that feature in the plugin settings, then when people click the thumbnails, instead of auto-playing the videos, it redirects them to the video page (and not in a new window either). Any advice?
(It’s a pet peeve of mine for any site to make me click multiple times just to play a video – because play means play! …but maybe that’s just me.)
]]>Has anyone tested the WP Video Lightbox plugin running under PHP 8.1? If so, what version of this plugin is compatible with PHP 8.1?
See https://www.php.net/supported-versions.php for the PHP version support calendar, which shows which versions of PHP are End of Life (Red), Security Fixes Only (Orange) and Active Support (Green).
]]>video-lightbox.js won’t minify completely due to a mix of Javascript and HTML. This is causing the file to get flagged in SEMRush. Perhaps pre-minifying the HTML before adding to the Javascript, or doing some sort of include is an option?
]]>Google Pagespeed https://pagespeed.web.dev/ reports a lack of alt attribute on the play button. Can you add some alt text to avoid dinging a page’s accessibility score?
--- misc_functions.php.bak 2023-02-08 11:52:32.658010207 -0500
+++ misc_functions.php 2023-02-08 11:52:56.174009669 -0500
@@ -302,7 +302,7 @@
$img_src = 'https://img.youtube.com/vi/'.$video_id.'/0.jpg';
$anchor_replacement = '<div class="wpvl_auto_thumb_box_wrapper"><div class="wpvl_auto_thumb_box">';
$anchor_replacement .= '<img src="'.esc_url($img_src).'" class="video_lightbox_auto_anchor_image" alt="'.wp_vid_lightbox_sanitize_alt_text($alt).'" />';
- $anchor_replacement .= '<div class="wpvl_auto_thumb_play"><img src="'.WP_VID_LIGHTBOX_URL.'/images/play.png" class="wpvl_playbutton" /></div>';
+ $anchor_replacement .= '<div class="wpvl_auto_thumb_play"><img src="'.WP_VID_LIGHTBOX_URL.'/images/play.png" class="wpvl_playbutton" alt="Play Video"/></div>';
$anchor_replacement .= '</div></div>';
}
else if($atts['vid_type']=="vimeo")
]]>
I used the sample shortcode [video_lightbox_youtube video_id=”G7z74BvLWUg&rel=false” width=”640″ height=”480″ auto_thumb=”1″]. When I clicked on the image, the normal Youtube page opened complete with other Youtube videos on the right and comments underneath. https://cadoanseraphim.org/tap-hat-archive/
How do I get the video to open in a popup just like your example?
Thanks