I'm trying to insert a youtube video into an awe content page using "Video Content". I have insert the short url of video "https://youtu.be/N2WIQztrF4A" but there is a message error. Whic is the corret way to insert a video into a page?
This is the test page http://www.quixy.it/video-test
Hi,
Sorry for your inconvenience. At the moment, please try to insert video with link url (https://www.youtube.com/watch?v=N2WIQztrF4A).
We will work for an updated version that supports share link of youtube and will notify you soon:)
OK, with this link is working.
I've seen we can play video into a lightbox.
Is it possible to link the playing of video directly to a button? (so when i click it it open the video into a lightbox)
Our module currently does not support link the playing of video directly to a button
However, we have a suggestion for you:
- insert link video to url
- add class video-openlightbox for the button
- add the follwing js into theme
$('.video-openlightbox').each(function(){
$(this).magnificPopup({
disableOn: 700,
type: 'iframe',
mainClass: 'mfp-fade',
removalDelay: 160,
preloader: false,
fixedContentPos: false
});
})
I read now your suggestion. Which theme file I need to modify to put js?
To create a butto and open the video into a lightbox I have solved creating a personalized Thumbnail (drawing the button) and into .css I have hide the ac-icon-play. It is a workaround but is working.
ps. Doesn't work with phone dimension.
Please put the code in file js of theme