Lightbox not working, even with
-
my code:
[video_lightbox_youtube video_id=”G7z74BvLWUg” width=”640″ height=”480″ anchor=”http://www.example.com/images/youtube-thumb.jpg” rel=”wp-video-lightbox”]It just links to the youtube website… Any help?
-
Hi try the following code. This is an example, make the necessary changes.
<a href="http://www.youtube.com/watch?v=G7z74BvLWUg" rel="wp-video-lightbox" title=""><img src="http://example.com/images/thumbnails/youtube.jpg" alt="YouTube" width="60" /></a>Hello, thankyou for your reply mbrsolution, i’ve the same problem and your code seems to work, but how can i put this code with the video thumbnail?
I should create some thumbnails and clicking on theme it should open your lightbox video player.
Thankyou so much.
@moonswolf you should create a thumbnail image and add this thumbnail image to the code. Is this what you mean by the following comment.
I should create some thumbnails and clicking on theme it should open your lightbox video player.
Hello, thankyou for your fast reply.
But I see that the wp video light box plugin has the feature of generate thumbnail from video.
Is there a way to auto-generate thumbnail directly from video?
Yes there is but the code is different from the code above. Please view the sample shortcode below.
[video_lightbox_youtube video_id=”G7z74BvLWUg” width=”640″ height=”480″ auto_thumb=”1″]
Thankyou, i tried your code, and it shows me the thumbnail, but when click on it, it opens the lightbox but the video doesn’t load, it give me an error and say my to try later. Instead if i click on the code with link format it works…
Make sure you enter the correct video ID.
Yes, i copied and pasted your code. Also tried with my videos id and without the code above it works.
Sorry but I don’t know what you mean by.
Also tried with my videos id and without the code above it works.
I mean that i tried with my correct video ID, and the result is always the same.
Also tried with the code:[video_lightbox_youtube video_id=”G7z74BvLWUg” width=”640″ height=”480″ auto_thumb=”1″]
and it show correct thumbnail but doesn’t load the video.
Instead with the code:
<a href=”http://www.youtube.com/watch?v=G7z74BvLWUg”
rel=”wp-video-lightbox” title=””><img
src=”http://example.com/images/thumbnails/youtube.jpg”
alt=”YouTube” width=”60″ />it works but doesn’t create a thumbnail from video. And i need to generate thumbnail from video, not like image.
How can merge the twoo things?
Ok, i’m looking for a solution, and now i understand that the lightbox doesn’t load cause the link of youtube generated from that code
[video_lightbox_youtube video_id=”G7z74BvLWUg” width=”640″ height=”480″ auto_thumb=”1″]
is passing some parameters (like width and height).
Is there a way to use that code without height and width? Something like this:
[video_lightbox_youtube video_id=”G7z74BvLWUg” auto_thumb=”1″]
i tried that code but it says to me that i’ve to add width and height….
Also if you would suggest some file to edit, i will follow your instruction and i will edit to solve the problem.
Thankyou.Just for testing purposes can you select any youtube video that works and add the ID to the code I shared above. Does this video open up correctly? If it does then you know that there is a problem with the video you are reporting issues with.
Let me know the outcome.
Kind regards
Hello and thankyou for your answer.
I made some test, and maybe i found the problem.
The plugin generate the link url in that format:
href="http://www.youtube.com/watch?v=G7z74BvLWUg&width=640&height=480"and this seems not to work, so if i try to remove the width and height parameters it works great.
So temporaly i’ve removed from the code the parameters of height and width, and it seems to work well.
Is there a way to use the code:
[video_lightbox_youtube video_id=”G7z74BvLWUg” width=”640″ height=”480″ auto_thumb=”1″]
without passing height and width necessarily?
Thankyou as always 🙂
Hi, I am not sure about your question in regards to removing the width and height. The plugin developers will investigate further your issue.
Thank you
The topic ‘Lightbox not working, even with’ is closed to new replies.