Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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.

    #997449

    Hey sabinesk,

    Thank you for using Enfold.

    You can append the autoplay parameter in the url. (see private field)

    Best regards,
    Ismael

    #997638

    That 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?

    #997661

    First : 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/

    #997762

    Hi,

    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,
    Ismael

    #997947

    The 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
    
    #998202

    Hi,

    Thank u @Guenni007

    Best regards,
    Basilis

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.