Link to an open lightbox?
-
Topic
-
I’m creating lots of videos on my site and want to link to them in emails.
Is it possible for my link to a post that contains a video in a light box to also open up the light box? So that it starts playing straight away and when the light box is closed, the user is on the page that I sent them to.
If I can’t do this, then I’ll probably have to replace all of the lightbox videos with embedded videos which autoplay. That’s the only way I can see of preventing the user from having to click again (after clicking the link). I would really rather keep the light box set up if I can though.
I mentioned this to a friend who gave me this bit of code:
********************
You could try something like:$(function(){
if (document.location.href.indexOf(‘autoplay=true’)!=-1) {
$(‘.video’).click();
}
});and then use this link in your email:
http://www.gingermagic.com/gingermagictv/impossible-object-wedding-magician-effect/?autoplay=true
It’s not terribly elegant but should do the trick.
*************************
But I don’t really know what to do with that I don’t want to start playing with the code of the theme.
Any ideas?
- The forum ‘Swagger Responsive WordPress Theme’ is closed to new topics and replies.