
-
AuthorPosts
-
August 14, 2018 at 10:41 pm #997355
How do I setup a button page builder element once clicked it opens a lightbox with a youtube video and plays automatically? The element is in the top slider area that says “Insert text Here”
I found this thead but cannot seem to get it play automatically. What file do I need to overwrite in my child theme folder? Functions.php?
Basically I want it to pop up and play like it does in the private content link but with a button.
August 15, 2018 at 6:45 am #997449Hey sabinesk,
Thank you for using Enfold.
You can append the autoplay parameter in the url. (see private field)
Best regards,
IsmaelAugust 15, 2018 at 6:40 pm #997638That didn’t seem to work. When I click on it I get an error. I need the video to autoplay and open in a lightbox. How do I achieve both in a button?
August 15, 2018 at 7:59 pm #997661First : take the individual link option not the iframe option!
all additional links to a video link :
first one was added via?
all other links will be added via&
so you got maybe something like this:
https://www.youtube.com/embed/4Myze3dfIw0?autoplay=1&cc_load_policy=1&enablejsapi=1&ecver=2&playsinline=1&rel=0&showinfo=0&color=white&iv_load_policy=3
if you link from an image or a text to it – add
&iframe=true
https://www.youtube.com/embed/4Myze3dfIw0?autoplay=1&cc_load_policy=1&enablejsapi=1&ecver=2&playsinline=1&rel=0&showinfo=0&color=white&iv_load_policy=3&iframe=true
or with watch:
https://www.youtube.com/watch?v=4Myze3dfIw0?autoplay=1&cc_load_policy=1&enablejsapi=1&ecver=2&playsinline=1&rel=0&showinfo=0&color=white&iv_load_policy=3&iframe=true
see here: https://webers-testseite.de/buttonlink/
August 16, 2018 at 5:32 am #997762Hi,
Thanks @guenni007!
In the latest patch, there’s a new feature allowing the lightbox to recognize query parameters so you can add the autoplay attribute without breaking the script.
The following shortcode opens the youtube video inside a lightbox and automatically plays.[av_button label='Click me' link='manually,https://www.youtube.com/watch?v=2Pw5oGy34g4&autoplay=1' link_target='' size='small' position='center' label_display='' icon_select='yes' icon='ue800' font='entypo-fontello' color='theme-color' custom_bg='#444444' custom_font='#ffffff' av_uid='av-jkw0c11k' admin_preview_bg='']
Best regards,
IsmaelAugust 16, 2018 at 2:26 pm #997947The ecver setting prevents the video recommendations when pausing the film. The playsinline setting ensures that the whole thing runs on a mobile phone like on a desktop. etc pp
you only have to add this to the film link always
?autoplay=1&cc_load_policy=1&enablejsapi=1&ecver=2&playsinline=1&rel=0&showinfo=0&color=white&iv_load_policy=3&iframe=true
August 16, 2018 at 10:56 pm #998202 -
AuthorPosts
- You must be logged in to reply to this topic.