Tagged: x
-
AuthorPosts
-
May 16, 2016 at 6:31 pm #994529
nikolasaParticipantHeya, I’ve been reading a couple of threads and haven’t yet found the answer to this. We have used the following code:
[image src="http://maori.tech/wp-content/uploads/2016/05/VideoGraphic.jpg" link="true" href="//www.youtube.com/embed/NbOtk867knM" lightbox_video="true"]Which seems to redirect the user to YouTube’s full page view (what we’d like is for the video to pop up within the browser window (at about 1980×1080) and autoplay.
Is that possible please?
May 16, 2016 at 6:32 pm #994533
nikolasaParticipantThis reply has been marked as private.May 16, 2016 at 11:24 pm #994913
RupokMemberHi there,
You are not using the lightbox correctly. It should be like :
[image class="videoLightbox" type="rounded" src="http://maori.tech/wp-content/uploads/2016/05/VideoGraphic.jpg" link="true" href="//www.youtube.com/embed/NbOtk867knM" alt="Text"] [lightbox selector=".videoLightbox" opacity="0.875" prev_scale="0.75" prev_opacity="0.75" next_scale="0.75" next_opacity="0.75" orientation="horizontal"]Hope this helps.
May 18, 2016 at 2:15 am #996868
nikolasaParticipantThis worked perfectly thank u!!
May 18, 2016 at 2:31 am #996881
RupokMemberYou are welcome!
Glad that it helped. Feel free to let us know if you face any other issue. We’ll be happy to assist you.
Thanks for using X.
Cheers!
June 8, 2016 at 7:11 am #1031696
nikolasaParticipantA quick follow up question, am I able to use some shortcode to have a similar lightbox pop up when someone clicks on a link (so that a video can be viewed).
Thanks!
June 8, 2016 at 7:12 am #1031699
nikolasaParticipantah and is there a way it doesn’t have to open full screen, so that it pops up and is viewed say at 65%.
Thnaks!!
June 8, 2016 at 12:19 pm #1032292
Nabeel AModeratorHi again,
Try adding the following code in your Customizer:
.ilightbox-holder.light { width: 65% !important; left: 20% !important; } .ilightbox-holder div.ilightbox-container { width: 100% !important; }If this doesn’t work then you can try the following code:
<a class="x-img lbx x-img-link" href="//www.youtube.com/embed/NbOtk867knM?autoplay=1" data-options="thumbnail: 'http://path/of/thumbnail.png', width: 1080, height: 608"><img src="http://poster/image.png"> WATCH VIDEO</a> [lightbox selector=".lbx"]You can change the width and height to achieve your desired size for your video.
Let us know how this goes!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-994529 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
