- This topic has 3 replies, 2 voices, and was last updated 10 years, 1 month ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP Lightbox Ultimate › Formatting lightbox link using Bootstrap button
I am wanting to play my own mp4 video in wp-Lightbox-ultimate when pressing a button styled in Bootstrap and am having problems. The video plays, but not in a lightbox.
The button is being displayed in a form with an action= attribute.
What I would like is something like in wp-lightbox that uses a rel= attribute. Is there one for wp-lightbox-ultimate?
If not, can you suggest an alternative please rather than using an image?
Thanks
Robbieg
Hi, currently the popup window can only be opened from a text/image. Can you please share the code you are using? Also provide a link to the page in question so I can take a look.
Hi. You can see the effect here:
[http://www.larato.co.uk/sales-academy/video-test/]
The code is like this…
<form action="http://www.larato.co.uk/sales-academy/wp-content/vid/00-Overview-of-Sales-Academy-2.mp4">
<button type="submit" class="btn btn-sa saas btn-lg">Play ...</button>
</form>
You can see that the video plays but not in a lightbox.
Thanks
MP4 video requires some additional code to open in lightbox. So there is no easier tweak to trigger the lightbox effect other than using a shortcode. Why don’t you make a text link that looks like a button? It’s possible with CSS.