So you want to use a button image instead of a video thumbnail image? Here is the sample code.
[video_lightbox_youtube video_id="G7z74BvLWUg" width="640" height="480" anchor="http://www.example.com/images/youtube-thumb.jpg"]
Is the above correct?
Thread Starter
mcrone
(@mcrone)
Hi
Thanks for the reply, yes I would like to use a standard button from the shortcode options on my website rather than a video thumbnail.
I use this shortcode to add a button to my website but I am not sure how to configure this for the video lightbox – [gdlr_button href=”https://www.youtube.com/watch?v=2lFTLVu0ZOw” target=”_self” size=”large” background=”#159b84″ color=”#ffffff”]WATCH VIDEO[/gdlr_button]
Thanks
Okay, try the following. I am not sure if this will work though.
Replace the following URL from the shortcode I shared above.
http://www.example.com/images/youtube-thumb.jpg
Add a button image instead, for example.
http://www.example.com/images/your-button-image.jpg
Thread Starter
mcrone
(@mcrone)
Hi
Thanks again but sadly no it did not work
Cheers
Can you share a screen campture of what you see? Also share the shortcode you are using?
Regards
Thread Starter
mcrone
(@mcrone)
Hi
Apologies for the delay, I have create a test page to show how the button will look – http://www.eight-interactive.com/test-home/.
If you click the Watch Video button I would then like the video to open in the lightbox?
Cheers!
Okay try the following sample code. Replace the YouTube video with your own video and the image with your button image.
<a href="https://www.youtube.com/watch?v=G7z74BvLWUg" rel="wp-videolightbox"
title=""><img src="http://example.com/images/thumbnails/youtube.jpg"
alt="YouTube" width="60" /></a>