Hi!
Can I put a locally-hosted MP4 in a modal callout and have it autoplay?
Thanks!
Travis
Hi!
Can I put a locally-hosted MP4 in a modal callout and have it autoplay?
Thanks!
Travis
Hi Travis,
Thanks for writing in! You can use self hosted MP4 video, YouTube or Vimeo video URL with auto-play parameter to load a video inside a modal. Please test the example code below using a Raw Content element in Cornerstone.
Self hosted video example:
[button lightbox_video="true" class="btn-lightbox" href="//theme.co/media/x-affiliate-marketing-101.mp4?autoplay=1"]Play Video[/button]
[lightbox selector=".btn-lightbox"]
Vimeo example:
[button lightbox_video="true" class="btn-lightbox" href="//player.vimeo.com/video/84751465?autoplay=1"]Play Video[/button]
[lightbox selector=".btn-lightbox"]
Hope that helps.
Awesome! That works great.
Is it possible to do the same thing in a modal content? I have a Content Area Modal on my main page that I’d like to use to call up the video. Same idea as the example you gave, I just have full control of the Content Area “button”.
To see what I mean, you can go to https://waymakerchurch.wpcomstaging.com/ and see the “Looking for Brentwood?” button.
Thanks SO MUCH for your help!
Hello Michael,
What you can do is to insert a video shortcode in the Content Area modal element.
Please check the demo of the video shortcode here:
We would love to know if this has worked for you. Thank you.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.